Pay.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package gameinfo
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. "go.mongodb.org/mongo-driver/bson/primitive"
  6. )
  7. type Pay struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. Class string `bson:"_class" json:"class"`
  10. OpenId string `bson:"openid" json:"openid"`
  11. Uid int32 `bson:"uid" json:"uid"`
  12. Region int32 `bson:"region" json:"region"`
  13. Channel string `bson:"channel" json:"channel"`
  14. Status int32 `bson:"status" json:"status"`
  15. Handlestatus int32 `bson:"handlestatus" json:"handlestatus"`
  16. PayItem string `bson:"pay_item" json:"payItem"`
  17. Billno string `bson:"billno" json:"billno"`
  18. Money int32 `bson:"money" json:"money"`
  19. CporderId string `bson:"cporderId" json:"cporderId"`
  20. Level int32 `bson:"level" json:"level"`
  21. VipLevel int32 `bson:"vipLevel" json:"vipLevel"`
  22. Creattime string `bson:"creattime" json:"creattime"`
  23. Callbaktime string `bson:"callbaktime" json:"callbaktime"`
  24. Handletime string `bson:"handletime" json:"handletime"`
  25. PayWay string `bson:"payWay" json:"payWay"`
  26. }
  27. var (
  28. // Table is the table name of account.
  29. TablePay = "pay"
  30. PayTablbeName = g.Config().GetString("db.core")
  31. // Model is the model object of account.
  32. ModelPay = dao.NewMgo(PayTablbeName, TablePay)
  33. )