company.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. package v1
  2. import (
  3. "property-management-gateway/param/base"
  4. "property-management-gateway/pb/v1"
  5. )
  6. type CompanyRegisterBody struct {
  7. // 申请人
  8. Applicant string `form:"applicant,proto3" json:"applicant"`
  9. // 申请人电话
  10. ApplicantPhone string `form:"applicant_phone" json:"applicant_phone"`
  11. // 公司名称
  12. CompanyName string `form:"company_name" json:"company_name"`
  13. // 公司电话
  14. CompanyPhone string `form:"company_phone" json:"company_phone"`
  15. // 申请人职位
  16. ApplicantDuty string `form:"applicant_duty" json:"applicant_duty"`
  17. // 法人
  18. LegalPerson string `form:"legal_person" json:"legal_person"`
  19. // 公司地址
  20. CompanyAddr string `form:"company_addr" json:"company_addr"`
  21. // 社会信用码
  22. SocialCode string `form:"social_code" json:"social_code"`
  23. // 营业执照
  24. BusinessLicense string `form:"business_license" json:"business_license"`
  25. // 申请人身份
  26. ApplicantIdentification string `form:"applicant_identification" json:"applicant_identification"`
  27. // 营业执照类型
  28. LicenseType int32 `form:"license_type" json:"license_type"`
  29. // 免费小区个数
  30. FreeGardenCount int32 `form:"free_garden_count" json:"free_garden_count"`
  31. // 账户名
  32. Username string `form:"username" json:"username"`
  33. // 密码
  34. Password string `form:"password" json:"password"`
  35. }
  36. type CompanyRegisterRequest struct {
  37. base.Header
  38. CompanyRegisterBody
  39. }
  40. type CompanyRegisterResponse struct {
  41. base.Result
  42. Data v1.RegisterReply `json:"data"`
  43. }
  44. type CompanyApproveBody struct {
  45. Id int64 `form:"id" json:"id"`
  46. // true 通过 false 不通过
  47. Status bool `form:"status" json:"status"`
  48. // 回复
  49. Feedback string `form:"feedback" json:"feedback"`
  50. }
  51. type CompanyApproveRequest struct {
  52. base.Header
  53. CompanyApproveBody
  54. }
  55. type CompanyApproveResponse struct {
  56. base.Result
  57. }
  58. type CompanyListQuery struct {
  59. Page int64 `form:"page"`
  60. PageSize int64 `form:"page_size" json:"page_size"`
  61. CompanyName string `form:"company_name" json:"company_name"`
  62. ApproveStatus int32 `form:"approve_status" json:"approve_status"`
  63. }
  64. type CompanyListRequest struct {
  65. base.Header
  66. CompanyListQuery
  67. }
  68. type CompanyListResponse struct {
  69. base.Result
  70. Data v1.CompanyListReply `json:"data"`
  71. }
  72. type CompanyChangeFreeGardenBody struct {
  73. Id int64 `form:"id"`
  74. Count int32 `form:"count"`
  75. }
  76. type CompanyChangeFreeGardenRequest struct {
  77. base.Header
  78. CompanyChangeFreeGardenBody
  79. }
  80. type CompanyChangeFreeGardenResponse struct {
  81. base.Result
  82. }
  83. type CompanyWxAccountListQuery struct {
  84. Page int64 `form:"page"`
  85. PageSize int64 `form:"page_size"`
  86. }
  87. type CompanyWxAccountListRequest struct {
  88. base.Header
  89. CompanyWxAccountListQuery
  90. }
  91. type CompanyWxAccountListResponse struct {
  92. base.Result
  93. Data v1.CompanyWxAccountApplyListReply `json:"data"`
  94. }
  95. type CompanyWxAccountApplyInfoQuery struct {
  96. Id int64 `form:"id"`
  97. }
  98. type CompanyWxAccountApplyInfoRequest struct {
  99. base.Header
  100. CompanyWxAccountApplyInfoQuery
  101. }
  102. type CompanyWxAccountApplyInfoResponse struct {
  103. base.Result
  104. Data v1.CompanyWxAccountApplyInfoReply `json:"data"`
  105. }
  106. /*
  107. type CompanyMchIdSetBody struct {
  108. MchId int32 `form:"mch_id" json:"mch_id"`
  109. Cid int64 `form:"cid" json:"cid"`
  110. }
  111. type CompanyMchIdSetRequest struct {
  112. base.Header
  113. CompanyMchIdSetBody
  114. }
  115. type CompanyMchIdSetResponse struct {
  116. base.Result
  117. }
  118. */
  119. type CompanyWxAccountApproveBody struct {
  120. // 资料记录id
  121. Id int64 `form:"id" json:"id"`
  122. // 公司id
  123. Cid int64 `form:"cid" json:"cid"`
  124. // 回复,审核未通过时必填
  125. Feedback string `form:"feedback" json:"feedback"`
  126. // 商户号
  127. MchId string `form:"mch_id" json:"mch_id"`
  128. // true 通过 false 不通过
  129. Status bool `form:"status" json:"status"`
  130. }
  131. type CompanyWxAccountApproveRequest struct {
  132. base.Header
  133. CompanyWxAccountApproveBody
  134. }
  135. type CompanyWxAccountApproveResponse struct {
  136. base.Result
  137. }