base_account.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. "lims_adapter/model/account/internal"
  8. )
  9. // BaseAccount is the golang structure for table base_account.
  10. type BaseAccount internal.BaseAccount
  11. // Fill with you ideas below.
  12. type BaseAccountResp struct {
  13. Id int `orm:"Id,primary" json:"id"` // 主键
  14. Account string `orm:"Account" json:"account"` // 账户
  15. AccountName string `orm:"AccountName" json:"accountName"` // 账户名称
  16. Surplus float64 `orm:"Surplus" json:"surplus"` // 账户余额
  17. Available float64 `orm:"Available" json:"available"` // 可用余额
  18. Limit float64 `orm:"Limit" json:"limit"` // 使用限额
  19. Advance int `orm:"Advance" json:"advance"` // 优先级
  20. UserId int `orm:"UserId" json:"userId"` // 使用人Id
  21. RealName string `orm:"RealName" json:"realName"`
  22. }
  23. type AccountReq struct {
  24. PageNun int `json:"pageNum"`
  25. PageSize int `json:"pageSize"`
  26. Account string `json:"account"`
  27. AccountName string `json:"accountName"`
  28. RealName string `json:"realName"`
  29. }
  30. type BaseAccountRsp struct {
  31. Records []BaseAccount `json:"records"`
  32. Total int `json:"total"`
  33. }
  34. type CalculateAmountReq struct {
  35. AppointId int `json:"appointId"`
  36. SignInTime *gtime.Time `json:"sign_in_time"` // 签到时间
  37. SignOutTime *gtime.Time `json:"sign_out_time"` // 签退时间
  38. }type SubAccountReq struct {
  39. SubId string `json:"subid"`
  40. }