types.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. EndTime string `form:"endTime,optional"` //新增时数据包截止时间
  19. InfoId string `form:"infoId,optional"` //信息标识
  20. DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
  21. DeductionType string `form:"deductionType,optional"` //扣费类型(1高级字段包)
  22. }
  23. type ResourcesRes struct {
  24. Code int64 `json:"code"`
  25. Message string `json:"message"`
  26. }
  27. type PreviewReq struct {
  28. InfoId string `form:"infoId,optional"` //信息标识
  29. AccountId string `form:"accountId,optional"` //企业标识
  30. ResourceType string `form:"resourceType,optional"` //资源类型
  31. }
  32. type PreviewRes struct {
  33. Code int64 `json:"code"`
  34. Message string `json:"message"`
  35. RepeatNumb int64 `json:"repeatNumb"`
  36. DeductionNumb int64 `json:"deductionNumb"`
  37. }
  38. type RecordReq struct {
  39. AccountId string `form:"accountId,optional"` //企业标识
  40. UserId string `form:"userId,optional"` //用户标识
  41. Page int64 `form:"page,optional"`
  42. PageSize int64 `form:"pageSize,optional"`
  43. State int64 `form:"state,optional"`
  44. }
  45. type RecordRes struct {
  46. Code int64 `json:"code"`
  47. Message string `json:"message"`
  48. Data []map[string]interface{} `json:"data"`
  49. Count int64 `json:"count"`
  50. }
  51. type AuthReq struct {
  52. AccountId string `form:"accountId,optional"` //企业标识
  53. UserId string `form:"userId,optional"` //用户标识
  54. }
  55. type AuthRes struct {
  56. Code int64 `json:"code"`
  57. Message string `json:"message"`
  58. Data []map[string]interface{} `json:"data"`
  59. }
  60. type BalanceReq struct {
  61. AccountId string `form:"accountId,optional"` //企业标识
  62. UserId string `form:"userId,optional"` //用户标识
  63. }
  64. type BalanceRes struct {
  65. Code int64 `json:"code"`
  66. Message string `json:"message"`
  67. Data []map[string]interface{} `json:"data"`
  68. }