mboe

package
v0.14.14-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRealName added in v0.13.44

func AuthRealName(userId, name, phone, enterpriseName string) 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) ([]byte, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func PackageEnterpriseData

func PackageEnterpriseData(tangentId, userId, enterpriseId string) ([]byte, error)

func PlayVideo

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

func RealNameAuthed added in v0.13.44

func RealNameAuthed(userId string) (bool, error)

func SetMainPageBanner

func SetMainPageBanner(banners []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 AuthRealNameRequest added in v0.13.44

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

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 {
	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"`
}

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 added in v0.13.46

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

func DynamicInfoState added in v0.13.45

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 {
	Enterprise
	Pics      []string `json:"pics"`
	CreatedAt string   `json:"createdAt"`
	UpdatedAt string   `json:"updatedAt"`
}

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"`
	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    []string             `json:"banners"`
	Icon       string               `json:"icon"`
	CreatedAt  string               `json:"createdAt"`
	Classifies []SecondClassifyInfo `json:"classifies"`
}

func GetIndustry

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

func QueryIndustry

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

type MainPage

type MainPage struct {
	Banners []string `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"`
	CreatedAt      time.Time `json:"createdAt"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

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
	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 `form:"createdAt" json:"createdAt"`
	UpdatedAt  time.Time `form:"updatedAt" 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