mboe

package
v0.15.108 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRealName

func AuthRealName(userId, name, phone, enterpriseName string) error

func BusinessCardDistribution

func BusinessCardDistribution() (int, error)

func Destroy

func Destroy()

func DownloadData

func DownloadData(tangentId, userId, id, name string) (string, error)

func DownloadNum

func DownloadNum() (int, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func PlayVideo

func PlayVideo(tangentId, userId, id string) (string, error)

func RealNameAuthed

func RealNameAuthed(userId string) (bool, error)

func SavePaperNum

func SavePaperNum() (int, error)

func VideoPlayNum

func VideoPlayNum() (int, error)

func VisitEnterpriseBusinessCard

func VisitEnterpriseBusinessCard(tangentId, userId, id string) (string, error)

Types

type AssociationInfo

type AssociationInfo struct {
	EnterpriseName string `json:"name"`
	Num            int    `json:"value"`
}

type AuthRealNameRequest

type AuthRealNameRequest struct {
	UserId         string `json:"userId"`
	Name           string `json:"name"`
	Phone          string `json:"phone"`
	EnterpriseName string `json:"enterpriseName"`
}

type DynamicInfoStateInfo

type DynamicInfoStateInfo struct {
	Data         bool `json:"data"`
	Video        bool `json:"video"`
	BusinessCard bool `json:"businessCard"`
}

func DynamicInfoState

func DynamicInfoState(id string) (*DynamicInfoStateInfo, error)

type EnterpriseAssociation

type EnterpriseAssociation struct {
	EnterpriseName string            `json:"name"`
	Num            int               `json:"value"`
	Association    []AssociationInfo `json:"children"`
}

type EnterpriseCount

type EnterpriseCount struct {
	EnterpriseName string `json:"enterpriseName"`
	Count          int64  `json:"count"`
}

type EnterpriseDetail

type EnterpriseDetail struct {
	EnterpriseInfo
	Video        bool `json:"hasVideo"`
	Data         bool `json:"hasData"`
	BusinessCard bool `json:"hasBusinessCard"`
}

func VisitEnterprise

func VisitEnterprise(tangentId, userId, id, way string) (*EnterpriseDetail, error)

type EnterpriseFloatCount

type EnterpriseFloatCount struct {
	EnterpriseName string  `json:"enterpriseName"`
	Count          float64 `json:"count"`
}

type EnterpriseInfo

type EnterpriseInfo struct {
	ID        string   `json:"id"`
	Name      string   `json:"name"`
	DataName  []string `json:"dataName"`
	Page      int      `json:"page"`
	Video     string   `json:"video"`
	Pics      []string `json:"pics"`
	Cover     string   `json:"cover"`
	Tag       string   `json:"tag"`
	ShortName string   `json:"shortName"`
}

type GetEnterprisesQuery

type GetEnterprisesQuery struct {
	ID       string `form:"id"`
	Name     string `form:"name"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetEnterprisesResult

type GetEnterprisesResult struct {
	PageNo     int             `json:"pageNo"`
	TotalCount int64           `json:"totalCount"`
	Infos      []TagEnterprise `json:"infos"`
}

type RankItem

type RankItem struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Num  int64  `json:"num"`
}

func DownloadRank

func DownloadRank() ([]RankItem, error)

func VisitRank

func VisitRank() ([]RankItem, error)

type Resp

type Resp[T any] struct {
	Data T      `json:"data"`
	Code int    `json:"code"`
	Suc  bool   `json:"success"`
	Msg  string `json:"msg"`
}

type TagEnterprise

type TagEnterprise struct {
	Name        string           `json:"name"`
	Enterprises []EnterpriseInfo `json:"enterprises"`
}

func GetEnterprises

func GetEnterprises(id, name string, pageNo, pageSize int) ([]TagEnterprise, int64, error)

type TypeEnterpriseAssociation

type TypeEnterpriseAssociation struct {
	Type        string                  `json:"name"`
	Association []EnterpriseAssociation `json:"children"`
}

type VisitChangeDetail

type VisitChangeDetail struct {
	Date  string `json:"date"`
	Count int    `json:"count"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL