123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package youngee_talent_model
- import "github.com/gogf/gf/util/gmeta"
- type InfoThirdPlatform struct {
- gmeta.Meta `orm:"table:info_third_platform"`
- PlatformId uint `json:"platform_id"` // 平台id,主键
- PlatformName string `json:"platform_name"` // 平台名
- PlatformIcon string `json:"platform_icon"` // 平台图标url
- }
- type PlatformAccountInfo struct {
- gmeta.Meta `orm:"table:platform_kuaishou_user_info"`
- TalentId string `json:"talent_id"` // 达人账号id(youngee_talent_info表id值)
- PlatformId int `json:"platform_id"` // 平台id
- Nickname string `json:"nick_name"` // 在平台上的昵称
- HomePageUrl string `json:"home_page_url"` // 主页链接
- HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
- PlatformInfo *InfoThirdPlatform `orm:"with:platform_id=platform_id"`
- }
- type AddAccountReq struct {
- PlatformId int `json:"platform_id"` // 平台id
- //Nickname string `json:"nick_name"` // 废弃,不填写
- HomePageUrl string `json:"home_page_url"` // 主页链接
- HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
- }
- type DelAccountReq struct {
- PlatformId int `json:"platform_id"` // 平台id
- OpenId string `json:"open_id"` // 主页链接
- }
- // 定义 BasicInfo 结构体来匹配 JSON 数据
- type XHSBasicInfo struct {
- Imageb string `json:"imageb"`
- Nickname string `json:"nickname"`
- Images string `json:"images"`
- RedID string `json:"red_id"`
- Gender string `json:"gender"`
- IPLocation string `json:"ip_location"`
- Desc string `json:"desc"`
- Fans int `json:"fans"`
- LikeNum int `json:"like_num"`
- }
- // 定义 BasicInfo 结构体来匹配 JSON 数据
- type WBBasicInfo struct {
- Imageb string `json:"imageb"`
- Nickname string `json:"nickname"`
- HeadImage string `json:"head_image"`
- WBID string `json:"wbid"`
- Gender string `json:"gender"`
- Fans int `json:"fans"`
- PostNum int `json:"post_num"` //作品数目
- }
- // 定义 BasicInfo 结构体来匹配 JSON 数据
- type BliBasicInfo struct {
- Nickname string `json:"nickname"`
- HeadImage string `json:"head_image"`
- UID string `json:"uid"`
- Gender string `json:"gender"`
- Fans int `json:"fans"`
- }
- type OCRResponse struct {
- SelfHome int `json:"self_home"` //0:不是自己的主页, 1:是自己的主页
- RedId string `json:"red_id"` //小红书唯一标识
- Nickname string `json:"nickname"` //微博、哔哩哔哩昵称
- ErrMsg string `json:"err_msg"` //错误信息
- }
|