PayLog.go 1.1 KB

12345678910111213141516171819202122232425262728
  1. package gm
  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 PayLog struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. UserId string `bson:"user_id" json:"userid"` //用户id
  10. PayId string `bson:"pay_id" json:"payid"` //参数
  11. ServerId string `bson:"server_id" json:"serverid"` //服务器id
  12. ServerName string `bson:"server_name" json:"servername"` //服务器名称
  13. Cmd string `bson:"cmd" json:"cmd"` //cmd = pay
  14. GMIp string `bson:"gm_ip" json:"gmip"`
  15. GMPort string `bson:"gm_port" json:"gmport"`
  16. UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
  17. UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
  18. }
  19. var (
  20. // Table is the table name of account.
  21. TablePayLog = "pay_log"
  22. PayLogTablbeName = g.Config().GetString("db.core")
  23. // Model is the model object of account.
  24. ModelPayLog = dao.NewMgo(PayLogTablbeName, TablePayLog)
  25. )