enterprise.proto 3.5 KB

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