mboe

package
v0.15.102 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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(info *AuthReal) error

func CreateApply

func CreateApply(param Apply) error

func CreateClassify

func CreateClassify(ind SecondClassify) error

func CreateEnterprise

func CreateEnterprise(param Enterprise) error

func CreateIndustry

func CreateIndustry(ind Industry) error

func DelClassify

func DelClassify(id string) error

func DelEnterprise

func DelEnterprise(id string) error

func DelIndustry

func DelIndustry(id string) error

func Destroy

func Destroy()

func DisposeApply

func DisposeApply(id string, state uint8) error

func DownloadData

func DownloadData(tangentId, userId, id string) error

func Excel added in v0.14.17

func Excel() ([]byte, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func PackageEnterpriseData

func PackageEnterpriseData(tangentId, userId, enterpriseId string) error

func PlayVideo

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

func RealNameAuthed

func RealNameAuthed(userId string) (bool, error)

func SetMainPageBanner

func SetMainPageBanner(banners []string) error

func SetMainPageTheme

func SetMainPageTheme(themeId string) error

func UptClassify

func UptClassify(param SecondClassify) error

func UptEnterprise

func UptEnterprise(param Enterprise) error

func UptIndustry

func UptIndustry(param Industry) error

func VisitEnterpriseBusinessCard

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

Types

type Apply

type Apply struct {
	Id             string `form:"id" json:"id"`
	Name           string `form:"name" json:"name"`
	Phone          string `form:"phone" json:"phone"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	CreatedAt      string `form:"createdAt" json:"createdAt"`
	Remark         string `form:"remark" json:"remark"`
	State          uint8  `form:"state" json:"state"`
}

func QueryApply

func QueryApply(param QueryApplyParam) ([]Apply, int64, error)

type AuthReal added in v0.14.2

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

func GetAuthRealName added in v0.14.2

func GetAuthRealName(userId string) (AuthReal, error)

type BusinessCardLog

type BusinessCardLog struct {
	ID             string `form:"id" json:"id"`
	EnterpriseId   string `form:"enterpriseId" json:"enterpriseId"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	ShortName      string `form:"shortName" json:"shortName"`
	CreateBy       string `form:"createBy" json:"createBy"`
	CreateAt       string `form:"createAt" json:"createAt" gocp:"time"`
	TangentId      string `form:"tangentId" json:"tangentId"`
}

func QueryBusinessCardLog

func QueryBusinessCardLog(param QueryBusinessCardLogParam) ([]BusinessCardLog, int64, error)

type Data

type Data struct {
	Id           string `form:"id" json:"id"`
	EnterpriseId string `form:"enterpriseId" json:"enterpriseId"`
	Path         string `form:"path" json:"path"`
	DataName     string `form:"dataName" json:"dataName"`
	Page         int    `form:"page" json:"page"`
	Size         string `json:"size"`
	Type         string `json:"type"`
}

func GetEnterpriseData

func GetEnterpriseData(id string) (*Data, error)

type DataInfo

type DataInfo struct {
	Id           string `form:"id" json:"id"`
	EnterpriseId string `form:"enterpriseId" json:"enterpriseId"`
	Path         OssObj `form:"path" json:"path"`
	DataName     string `form:"dataName" json:"dataName"`
	Page         int    `form:"page" json:"page"`
	Size         string `json:"size"`
	Type         string `json:"type"`
}

type DataLog

type DataLog struct {
	ID             string `form:"id" json:"id"`
	DataId         string `form:"dataId" json:"dataId"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	ShortName      string `form:"shortName" json:"shortName"`
	CreateBy       string `form:"createBy" json:"createBy"`
	CreateAt       string `form:"createAt" json:"createAt"`
	TangentId      string `form:"tangentId" json:"tangentId"`
}

func QueryDataLog

func QueryDataLog(param QueryDataLogParam) ([]DataLog, int64, error)

type DynamicInfoStateInfo

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

func DynamicInfoState

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

type Enterprise

type Enterprise struct {
	Metadata
	Industries []EnterpriseIndustry `json:"industries"`
	Data       []Data               `json:"data"`
}

type EnterpriseIndustry

type EnterpriseIndustry struct {
	EnterpriseId       string `json:"enterpriseId"`
	IndustryId         string `json:"industryId"`
	IndustryName       string `json:"industryName"`
	SecondClassifyId   string `json:"secondClassifyId"`
	SecondClassifyName string `json:"secondClassifyName"`
}

type EnterpriseInfo

type EnterpriseInfo struct {
	ID             string               `form:"id" json:"id"`
	Name           string               `form:"name" json:"name"`
	ShortName      string               `form:"shortName" json:"shortName"`
	Video          string               `json:"video"`
	BusinessCardId string               `form:"businessCardId" json:"businessCardId"`
	Top            bool                 `form:"top" json:"top"`
	Active         bool                 `form:"active" json:"active"`
	Pics           []OssObj             `json:"pics"`
	CreatedAt      string               `json:"createdAt"`
	Data           []DataInfo           `json:"data"`
	ShouldAuth     bool                 `json:"shouldAuth"`
	Industries     []EnterpriseIndustry `json:"industries"`
}

func GetEnterprises

func GetEnterprises(param QueryEnterpriseParam) ([]EnterpriseInfo, int64, error)

func VisitEnterprise

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

type GetEnterprisesQuery

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

type Industry

type Industry struct {
	Id              string    `form:"id" json:"id"`
	Label           string    `form:"label" json:"label"`
	Active          bool      `form:"active" json:"active"`
	Priority        int       `form:"priority" json:"priority"`
	Banners         string    `form:"banners" json:"banners"`
	Icon            string    `json:"icon"`
	Texture         string    `json:"texture"`
	ForegroundColor string    `json:"foregroundColor"`
	CreatedAt       time.Time `json:"createdAt"`
	UpdatedAt       time.Time `json:"updatedAt"`
}

type IndustryInfo

type IndustryInfo struct {
	Id              string               `json:"id"`
	Label           string               `json:"label"`
	Active          bool                 `json:"active"`
	Priority        int                  `json:"priority"`
	Banners         []OssObj             `json:"banners"`
	Icon            string               `json:"icon"`
	CreatedAt       string               `json:"createdAt"`
	Classifies      []SecondClassifyInfo `json:"classifies"`
	Texture         string               `json:"texture"`
	ForegroundColor string               `json:"foregroundColor"`
}

func GetIndustry

func GetIndustry(id string) (*IndustryInfo, error)

func QueryIndustry

func QueryIndustry(param QueryIndustryParam) ([]IndustryInfo, int64, error)

type MainPage

type MainPage struct {
	Banners []OssObj `json:"banners"`
	Theme   string   `json:"theme"`
}

func MainPageConfig

func MainPageConfig() (*MainPage, error)

type Metadata

type Metadata struct {
	ID             string    `form:"id" json:"id"`
	Name           string    `form:"name" json:"name"`
	ShortName      string    `form:"shortName" json:"shortName"`
	Pics           string    `json:"pics"`
	Video          string    `json:"video"`
	BusinessCardId string    `form:"businessCardId" json:"businessCardId"`
	Top            bool      `form:"top" json:"top"`
	Active         bool      `form:"active" json:"active"`
	ShouldAuth     bool      `json:"shouldAuth"`
	CreatedAt      time.Time `json:"createdAt"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

type OssObj

type OssObj struct {
	Url     string `json:"url"`
	ObjName string `json:"objName"`
}

type QueryApplyParam

type QueryApplyParam struct {
	Apply
	PageNo   int `form:"pageNo" json:"pageNo"`
	PageSize int `form:"pageSize" json:"pageSize"`
}

type QueryBusinessCardLogParam

type QueryBusinessCardLogParam struct {
	BusinessCardLog
	EnterpriseIds string `json:"enterpriseIds"`
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
}

type QueryDataLogParam

type QueryDataLogParam struct {
	DataLog
	EnterpriseIds string `json:"enterpriseIds"`
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
}

type QueryEnterpriseParam

type QueryEnterpriseParam struct {
	Metadata
	IndustryId string `form:"industryId"`
	ClassifyId string `form:"classifyId"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

type QueryIndustryParam

type QueryIndustryParam struct {
	Industry
	PageNo   int `form:"pageNo"`
	PageSize int `form:"pageSize"`
}

type QuerySecondClassifyParam

type QuerySecondClassifyParam struct {
	SecondClassify
	IndustryIds string `form:"ids" json:"ids"`
	PageNo      int    `form:"pageNo"`
	PageSize    int    `form:"pageSize"`
}

type QueryUserVisitLogParam

type QueryUserVisitLogParam struct {
	UserVisitLog
	EnterpriseIds string `json:"enterpriseIds"`
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
}

type QueryVideoLogParam

type QueryVideoLogParam struct {
	VideoLog
	EnterpriseIds string `json:"enterpriseIds"`
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
}

type QueryVisitLogParam

type QueryVisitLogParam struct {
	VisitLog
	Start         string `json:"start"`
	End           string `json:"end"`
	EnterpriseIds string `json:"enterpriseIds"`
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
}

type RankItem

type RankItem[T int64 | float64] struct {
	Id    string `json:"id"`
	Label string `json:"label"`
	V     T      `json:"v"`
}

func EmissionRank

func EmissionRank(ids string, n int) ([]RankItem[float64], error)

func EnterpriseDataNum

func EnterpriseDataNum(ids string) ([]RankItem[int64], error)

func VisitRank

func VisitRank(ids string, n int) ([]RankItem[int64], 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 Result

type Result[T any] struct {
	Info       T     `json:"info"`
	PageNo     int   `json:"pageNo"`
	TotalCount int64 `json:"totalCount"`
}

type SecondClassify

type SecondClassify struct {
	Id         string    `form:"id" json:"id"`
	Label      string    `form:"label" json:"label"`
	Active     bool      `form:"active" json:"active"`
	Priority   int       `form:"priority" json:"priority"`
	Banners    string    `form:"banners" json:"banners"`
	IndustryId string    `form:"industryId" json:"industryId"`
	Icon       string    `json:"icon"`
	CreatedAt  time.Time `json:"createdAt"`
	UpdatedAt  time.Time `json:"updatedAt"`
}

type SecondClassifyInfo

type SecondClassifyInfo struct {
	Id         string   `form:"id" json:"id"`
	Label      string   `form:"label" json:"label"`
	Active     bool     `form:"active" json:"active"`
	Priority   int      `form:"priority" json:"priority"`
	Banner     []string `form:"banners" json:"banners"`
	IndustryId string   `form:"industryId" json:"industryId"`
	Icon       string   `json:"icon"`
	CreatedAt  string   `form:"createdAt" json:"createdAt"`
	UpdatedAt  string   `form:"updatedAt" json:"updatedAt"`
}

func GetClassify

func GetClassify(id string) (*SecondClassifyInfo, error)

type UserVisitLog

type UserVisitLog struct {
	ID             string `form:"id" json:"id"`
	EnterpriseId   string `form:"enterpriseId" json:"enterpriseId"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	ShortName      string `form:"shortName" json:"shortName"`
	CreateBy       string `form:"createBy" json:"createBy"`
	CreateAt       string `form:"createAt" json:"createAt" gocp:"time"`
	TangentId      string `form:"tangentId" json:"tangentId"`
}

func QueryUserVisitLog

func QueryUserVisitLog(param QueryUserVisitLogParam) ([]UserVisitLog, int64, error)

type VideoLog

type VideoLog struct {
	ID             string `form:"id" json:"id"`
	VideoId        string `form:"videoId" json:"videoId"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	ShortName      string `form:"shortName" json:"shortName"`
	CreateBy       string `form:"createBy" json:"createBy"`
	CreateAt       string `form:"createAt" json:"createAt" gocp:"time"`
	TangentId      string `form:"tangentId" json:"tangentId"`
}

func QueryVideoLog

func QueryVideoLog(param QueryVideoLogParam) ([]VideoLog, int64, error)

type VisitLog

type VisitLog struct {
	ID             string `form:"id" json:"id"`
	EnterpriseId   string `form:"enterpriseId" json:"enterpriseId"`
	EnterpriseName string `form:"enterpriseName" json:"enterpriseName"`
	ShortName      string `form:"shortName" json:"shortName"`
	CreateBy       string `form:"createBy" json:"createBy"`
	Way            uint8  `form:"way" json:"way"`
	CreateAt       string `form:"createAt" json:"createAt" gocp:"time"`
	TangentId      string `form:"tangentId" json:"tangentId"`
}

func QueryVisitLog

func QueryVisitLog(param QueryVisitLogParam) ([]VisitLog, int64, error)

Jump to

Keyboard shortcuts

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