Documentation ¶
Index ¶
- func AuthRealName(userId, name, phone, enterpriseName string) error
- func CreateApply(param Apply) error
- func CreateClassify(ind SecondClassify) error
- func CreateEnterprise(param Enterprise) error
- func CreateIndustry(ind Industry) error
- func DelClassify(id string) error
- func DelEnterprise(id string) error
- func DelIndustry(id string) error
- func Destroy()
- func DisposeApply(id string, state uint8) error
- func DownloadData(tangentId, userId, id string) (string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func PackageEnterpriseData(tangentId, userId, enterpriseId string) (string, error)
- func PlayVideo(tangentId, userId, id string) (string, error)
- func RealNameAuthed(userId string) (bool, error)
- func SetMainPageBanner(banners []string) error
- func SetMainPageTheme(themeId string) error
- func UptClassify(param SecondClassify) error
- func UptEnterprise(param Enterprise) error
- func UptIndustry(param Industry) error
- func VisitEnterpriseBusinessCard(tangentId, userId, id string) (string, error)
- type Apply
- type AuthRealNameRequest
- type BusinessCardLog
- type Data
- type DataInfo
- type DataLog
- type DynamicInfoStateInfo
- type Enterprise
- type EnterpriseIndustry
- type EnterpriseInfo
- type GetEnterprisesQuery
- type Industry
- type IndustryInfo
- type MainPage
- type Metadata
- type OssObj
- type QueryApplyParam
- type QueryBusinessCardLogParam
- type QueryDataLogParam
- type QueryEnterpriseParam
- type QueryIndustryParam
- type QuerySecondClassifyParam
- type QueryUserVisitLogParam
- type QueryVideoLogParam
- type QueryVisitLogParam
- type RankItem
- type Resp
- type Result
- type SecondClassify
- type SecondClassifyInfo
- type UserVisitLog
- type VideoLog
- type VisitLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRealName ¶
func CreateApply ¶
func CreateClassify ¶
func CreateClassify(ind SecondClassify) error
func CreateEnterprise ¶
func CreateEnterprise(param Enterprise) error
func CreateIndustry ¶
func DelClassify ¶
func DelEnterprise ¶
func DelIndustry ¶
func DisposeApply ¶
func DownloadData ¶
func PackageEnterpriseData ¶
func RealNameAuthed ¶
func SetMainPageBanner ¶
func SetMainPageTheme ¶
func UptClassify ¶
func UptClassify(param SecondClassify) error
func UptEnterprise ¶
func UptEnterprise(param Enterprise) error
func UptIndustry ¶
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 ¶
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 ¶
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 EnterpriseInfo ¶
type EnterpriseInfo struct { ID string `form:"id" json:"id"` Name string `form:"name" json:"name"` ShortName string `form:"shortName" json:"shortName"` Logo string `json:"logo"` 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"` 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 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 ¶
func MainPageConfig ¶
type Metadata ¶
type Metadata struct { ID string `form:"id" json:"id"` Name string `form:"name" json:"name"` ShortName string `form:"shortName" json:"shortName"` Logo string `json:"logo"` 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 QueryBusinessCardLogParam ¶
type QueryBusinessCardLogParam struct { BusinessCardLog EnterpriseIds string `json:"enterpriseIds"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` }
type QueryDataLogParam ¶
type QueryEnterpriseParam ¶
type QueryIndustryParam ¶
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 QueryVisitLogParam ¶
type RankItem ¶
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)
func QueryClassify ¶
func QueryClassify(param QuerySecondClassifyParam) ([]SecondClassifyInfo, int64, 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)
Click to show internal directories.
Click to hide internal directories.