kuaishouAuth.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "github.com/gogf/gf/util/gmeta"
  5. )
  6. type KuaishouUserInfo struct {
  7. gmeta.Meta `orm:"table:platform_kuaishou_user_info"`
  8. Id int `json:"id" orm:"id,primary"`
  9. OpenId string `json:"open_id" orm:"open_id"`
  10. PlatformId int `json:"platform_id" orm:"platform_id"`
  11. TalentId string `json:"talent_id" orm:"talent_id"`
  12. Code string `json:"code" orm:"code"`
  13. AccessToken string `json:"access_token" orm:"access_token"`
  14. RefreshToken string `json:"refresh_token" orm:"refresh_token"`
  15. NickName string `json:"nick_name" orm:"nick_name"`
  16. HeadUri string `json:"head_uri" orm:"head_uri"`
  17. Fan int `json:"fan" orm:"fan"`
  18. Expired bool `json:"expired" orm:"expired"`
  19. SaleNum30day int `json:"sale_num_30day" orm:"sale_num_30day"`
  20. SaleNumTotal int `json:"sale_num_total" orm:"sale_num_total"`
  21. CreateTime *gtime.Time `json:"create_time" orm:"create_time" ` // 创建时间
  22. UpdateTime *gtime.Time `json:"update_time" orm:"update_time" ` // 创建时间
  23. IsDelete int `json:"is_delete" orm:"is_delete"`
  24. LikeNum int `json:"like_num" orm:"like_num"`
  25. VideoNum int `json:"video_num" orm:"video_num"`
  26. Status int `json:"status"`
  27. UseCode int `json:"use_code" ` //满足条件的账号可被选择
  28. }
  29. // 快手列表返回的结果
  30. // ResultData 结构体
  31. type KSListResult struct {
  32. Count int // 不同 open_id 的个数
  33. UserInfo []*KuaishouUserInfo // 用户信息列表
  34. }