base_account.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. IsSelf string `json:"isSelf"` // 1 查看全部;其他 查看自己
  30. }
  31. type BaseAccountRsp struct {
  32. Records []BaseAccount `json:"records"`
  33. Total int `json:"total"`
  34. }
  35. type CalculateAmountReq struct {
  36. AppointId int `json:"appointId"`
  37. SignInTime *gtime.Time `json:"sign_in_time"` // 签到时间
  38. SignOutTime *gtime.Time `json:"sign_out_time"` // 签退时间
  39. }
  40. type SubAccountReq struct {
  41. SubId string `json:"subid"`
  42. }