UserInfo.go 612 B

12345678910111213141516171819202122
  1. package gameinfo
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. )
  6. type UserInfo struct {
  7. Id int32 `bson:"_id" json:"id"`
  8. OpenId string `bson:"openId" json:"openId"`
  9. ServerId string `bson:"serverId" json:"serverId"`
  10. Platform string `bson:"platform" json:"platform"`
  11. Uid int32 `bson:"uid" json:"uid"`
  12. }
  13. var (
  14. // Table is the table name of account.
  15. TableUserInfo = "user_info"
  16. UserInfoTablbeName = g.Config().GetString("db.core")
  17. // Model is the model object of account.
  18. ModelUserInfo = dao.NewMgo(UserInfoTablbeName, TableUserInfo)
  19. )