talent_account.go 1.2 KB

1234567891011121314151617181920212223
  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:youngee_platform_account_info"`
  11. AccountId int `json:"account_id"` //
  12. TalentId string `json:"talent_id"` // 达人账号id(youngee_talent_info表id值)
  13. PlatformId int `json:"platform_id"` // 平台id,与third_platform_info中的id相同
  14. PlatformUid int `json:"platform_uid"` // 在平台上的id
  15. PlatformNickname string `json:"platform_nickname"` // 在平台上的昵称
  16. HomePageUrl string `json:"home_page_url"` // 主页链接
  17. FansCount int64 `json:"fans_count"` // 粉丝数
  18. HomePageCaptureUrl string `json:"home_page_capture_url"` // 主页截图链接
  19. PlatformInfo *InfoThirdPlatform `orm:"with:platform_id=platform_id"`
  20. }