talent_account.go 1.4 KB

12345678910111213141516171819202122232425262728
  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. PlatformInfo *InfoThirdPlatform `orm:"with:platform_id=platform_id"`
  24. }