enterprise.proto 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. }
  77. message ChangePasswdRequest {
  78. int64 uid = 1;
  79. string old = 2;
  80. string new = 3;
  81. }
  82. message ChangePasswdReply {
  83. }
  84. message EmailUpdateRequest {
  85. int64 id = 1;
  86. string email = 2;
  87. }
  88. message EmailUpdateReply {
  89. }
  90. message EmailPrepareRequest {
  91. int64 id = 1;
  92. string password = 2;
  93. string email = 3;
  94. }
  95. message EmailPrepareReply {
  96. }
  97. message PhoneUpdateRequest {
  98. int64 id = 1;
  99. string phone = 2;
  100. }
  101. message PhoneUpdateReply {
  102. }
  103. message UserInfoRequest {
  104. int64 id = 1;
  105. }
  106. message UserInfoReply {
  107. string email = 1;
  108. string phone = 2;
  109. }