supplier.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-supplier-management/pb/v1";
  6. message RegisterRequest {
  7. // 供应商名称
  8. string name = 1;
  9. // 统一社会信用码
  10. string social_code = 2;
  11. // 法定代表人
  12. string legal_person = 3;
  13. // 所属
  14. int32 enterprise_location = 4;
  15. // 证件号
  16. string id_cert = 5;
  17. // 营业执照
  18. repeated string business_license = 6;
  19. // 诚信经营承诺书
  20. repeated string integrity_management_letter = 7;
  21. // 法人授权书
  22. repeated string legal_person_letter = 8;
  23. // 业务负责人任命书
  24. repeated string business_responsible_letter = 9;
  25. // 用户名
  26. string user_name = 10;
  27. // 密码
  28. string passwd = 11;
  29. // 业务联系人
  30. string business_contact = 12;
  31. // 业务联系人电话
  32. string business_contact_phone = 13;
  33. // 业务负责人
  34. string business_responsible = 14;
  35. // 业务负责人电话
  36. string business_responsible_phone = 15;
  37. string emergency_contact = 16;
  38. string emergency_contact_phone = 17;
  39. // 注册状态 0 待审核 1 通过 2 未通过
  40. int32 status = 18;
  41. uint32 vcode = 19;
  42. }
  43. message RegisterReply {
  44. }
  45. message LoginRequest {
  46. string user = 1;
  47. string password = 2;
  48. }
  49. message LoginReply {
  50. int64 uid = 1;
  51. }
  52. message PublicityRequest {
  53. int32 device_code = 1;
  54. string provider = 2;
  55. }
  56. message PublicityDeviceTypeItem {
  57. int32 type_code = 1;
  58. string type_name = 2;
  59. }
  60. message PublicityItem {
  61. string name = 1;
  62. string social_code = 2;
  63. repeated PublicityDeviceTypeItem devices = 3;
  64. }
  65. message PublicityReply {
  66. repeated PublicityItem list = 1;
  67. }
  68. message SetPasswdRequest {
  69. string phone = 2;
  70. string passwd = 1;
  71. }
  72. message SetPasswdReply {
  73. }
  74. message ProviderApproveStatusRequest {
  75. string social_code = 1;
  76. }
  77. message ProviderApproveStatusReply {
  78. string feedback = 1;
  79. int32 status = 2;
  80. string approve_time = 3;
  81. string reviewer = 4;
  82. }
  83. message ChangePasswdRequest {
  84. int64 uid = 1;
  85. string old = 2;
  86. string new = 3;
  87. }
  88. message ChangePasswdReply {
  89. }
  90. message EmailUpdateRequest {
  91. int64 id = 1;
  92. string email = 2;
  93. }
  94. message EmailUpdateReply {
  95. }
  96. message EmailPrepareRequest {
  97. int64 id = 1;
  98. string password = 2;
  99. string email = 3;
  100. }
  101. message EmailPrepareReply {
  102. }
  103. message PhoneUpdateRequest {
  104. int64 id = 1;
  105. string phone = 2;
  106. }
  107. message PhoneUpdateReply {
  108. }
  109. message UserInfoRequest {
  110. int64 id = 1;
  111. string phone = 2;
  112. }
  113. message UserInfoReply {
  114. string email = 1;
  115. string phone = 2;
  116. string code = 3;
  117. }
  118. message ProviderItem {
  119. int64 id = 1;
  120. string name = 2;
  121. string social_code = 3;
  122. string business_contact = 4;
  123. string business_contact_phone = 5;
  124. string apply_time = 6;
  125. string approve_time = 7;
  126. int32 status = 8;
  127. string feedback = 9;
  128. // 法定代表人
  129. string legal_person = 10;
  130. string enterprise_location = 11;
  131. // 证件号
  132. string id_cert = 12;
  133. // 营业执照
  134. string business_license = 13;
  135. // 诚信经营承诺书
  136. string integrity_management_letter = 14;
  137. // 法人授权书
  138. string legal_person_letter = 15;
  139. // 业务负责人任命书
  140. string business_responsible_letter = 16;
  141. // 用户名
  142. string user_name = 17;
  143. // 业务负责人
  144. string business_responsible = 18;
  145. // 业务负责人电话
  146. string business_responsible_phone = 19;
  147. string emergency_contact = 20;
  148. string emergency_contact_phone = 21;
  149. string reviewer = 22;
  150. }
  151. message ProviderInfoRequest {
  152. int64 id = 1;
  153. }
  154. message ProviderInfoReply {
  155. ProviderItem info = 1;
  156. }