supplier.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-supplier-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. 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. uint32 vcode = 19;
  40. // 注册状态 0 待审核 1 通过 2 未通过
  41. //int32 status = 18;
  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. }
  82. message ChangePasswdRequest {
  83. int64 uid = 1;
  84. string old = 2;
  85. string new = 3;
  86. }
  87. message ChangePasswdReply {
  88. }
  89. message EmailUpdateRequest {
  90. int64 id = 1;
  91. string email = 2;
  92. }
  93. message EmailUpdateReply {
  94. }
  95. message EmailPrepareRequest {
  96. int64 id = 1;
  97. string password = 2;
  98. string email = 3;
  99. }
  100. message EmailPrepareReply {
  101. }
  102. message PhoneUpdateRequest {
  103. int64 id = 1;
  104. string phone = 2;
  105. }
  106. message PhoneUpdateReply {
  107. }
  108. message UserInfoRequest {
  109. int64 id = 1;
  110. }
  111. message UserInfoReply {
  112. string email = 1;
  113. string phone = 2;
  114. }