types.go 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type ResourcesReq struct {
  4. AccountId string `form:"accountId"` //账户标识
  5. CompanyId int64 `form:"companyId,optional"` //企业标识
  6. DepartmentId int64 `form:"departmentId,optional"` //组织标识
  7. Name string `form:"name"` //资源名称
  8. ResourceType string `form:"resourceType"` //资源类型
  9. Number int64 `form:"number"` //数量
  10. Spec string `form:"spec,optional"` //规格
  11. AppId string `form:"appId"` //标识
  12. Model int64 `form:"model"` //操作类型0使用1新增
  13. RuleId string `form:"ruleId,optional"` //使用规则标识
  14. UserId string `form:"userId"` //用户标识
  15. Url string `form:"url,optional"` //下载地址
  16. SearchCriteria string `form:"searchCriteria,optional"` //搜索条件
  17. Source string `form:"source,optional"` //数据来源
  18. StartTime string `form:"startTime,optional"` //新增时数据包开始时间
  19. EndTime string `form:"endTime,optional"` //新增时数据包截止时间
  20. InfoId string `form:"infoId,optional"` //信息标识
  21. DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
  22. }
  23. type ResourcesRes struct {
  24. Code int64 `form:"code"`
  25. Message string `form:"message"`
  26. }
  27. type PreviewReq struct {
  28. InfoId string `form:"infoId,optional"` //信息标识
  29. AccountId string `form:"accountId,optional"` //企业标识
  30. DeductionType string `form:"deductionType,optional"` //资源代码
  31. }
  32. type PreviewRes struct {
  33. Code int64 `form:"code"`
  34. Message string `form:"message"`
  35. RepeatNumb int64 `form:"repeatNumb"`
  36. DeductionNumb int64 `form:"deductionNumb"`
  37. }
  38. type RecordReq struct {
  39. AccountId string `form:"accountId,optional"` //企业标识
  40. UserId string `form:"userId,optional"` //用户标识
  41. Page int `form:"page,optional"`
  42. PageSize int `form:"pageSize,optional"`
  43. }
  44. type RecordRes struct {
  45. Code int64 `json:"code"`
  46. Message string `json:"message"`
  47. Data []map[string]interface{} `json:"data"`
  48. Count int64 `json:"count"`
  49. }
  50. type AuthReq struct {
  51. AccountId string `form:"accountId,optional"` //企业标识
  52. UserId string `form:"userId,optional"` //用户标识
  53. }
  54. type AuthRes struct {
  55. Code int64 `json:"code"`
  56. Message string `json:"message"`
  57. Data []map[string]interface{} `json:"data"`
  58. }
  59. type BalanceReq struct {
  60. AccountId string `form:"accountId,optional"` //企业标识
  61. UserId string `form:"userId,optional"` //用户标识
  62. }
  63. type BalanceRes struct {
  64. Code int64 `json:"code"`
  65. Message string `json:"message"`
  66. Data []map[string]interface{} `json:"data"`
  67. }