talent_account.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package youngee_talent_model
  2. import "github.com/gogf/gf/util/gmeta"
  3. type InfoThirdPlatform struct {
  4. gmeta.Meta `orm:"table:info_third_platform"`
  5. PlatformId uint `json:"platform_id"` // 平台id,主键
  6. PlatformName string `json:"platform_name"` // 平台名
  7. PlatformIcon string `json:"platform_icon"` // 平台图标url
  8. }
  9. type PlatformAccountInfo struct {
  10. gmeta.Meta `orm:"table:platform_kuaishou_user_info"`
  11. TalentId string `json:"talent_id"` // 达人账号id(youngee_talent_info表id值)
  12. PlatformId int `json:"platform_id"` // 平台id
  13. Nickname string `json:"nick_name"` // 在平台上的昵称
  14. HomePageUrl string `json:"home_page_url"` // 主页链接
  15. HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
  16. PlatformInfo *InfoThirdPlatform `orm:"with:platform_id=platform_id"`
  17. }
  18. type AddAccountReq struct {
  19. PlatformId int `json:"platform_id"` // 平台id
  20. //Nickname string `json:"nick_name"` // 废弃,不填写
  21. HomePageUrl string `json:"home_page_url"` // 主页链接
  22. HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
  23. }
  24. type DelAccountReq struct {
  25. PlatformId int `json:"platform_id"` // 平台id
  26. OpenId string `json:"open_id"` // 主页链接
  27. }
  28. // 定义 BasicInfo 结构体来匹配 JSON 数据
  29. type XHSBasicInfo struct {
  30. Imageb string `json:"imageb"`
  31. Nickname string `json:"nickname"`
  32. Images string `json:"images"`
  33. RedID string `json:"red_id"`
  34. Gender string `json:"gender"`
  35. IPLocation string `json:"ip_location"`
  36. Desc string `json:"desc"`
  37. Fans int `json:"fans"`
  38. LikeNum int `json:"like_num"`
  39. }
  40. // 定义 BasicInfo 结构体来匹配 JSON 数据
  41. type WBBasicInfo struct {
  42. Imageb string `json:"imageb"`
  43. Nickname string `json:"nickname"`
  44. HeadImage string `json:"head_image"`
  45. WBID string `json:"wbid"`
  46. Gender string `json:"gender"`
  47. Fans int `json:"fans"`
  48. PostNum int `json:"post_num"` //作品数目
  49. }
  50. // 定义 BasicInfo 结构体来匹配 JSON 数据
  51. type BliBasicInfo struct {
  52. Nickname string `json:"nickname"`
  53. HeadImage string `json:"head_image"`
  54. UID string `json:"uid"`
  55. Gender string `json:"gender"`
  56. Fans int `json:"fans"`
  57. }
  58. type OCRResponse struct {
  59. SelfHome int `json:"self_home"` //0:不是自己的主页, 1:是自己的主页
  60. RedId string `json:"red_id"` //小红书唯一标识
  61. Nickname string `json:"nickname"` //微博、哔哩哔哩昵称
  62. ErrMsg string `json:"err_msg"` //错误信息
  63. }