enterprise.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-enterprise-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. 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 SetPasswdRequest {
  48. string phone = 2;
  49. string passwd = 1;
  50. }
  51. message SetPasswdReply {
  52. }
  53. message CompanyApproveStatusRequest {
  54. string social_code = 1;
  55. }
  56. message CompanyApproveStatusReply {
  57. string feedback = 1;
  58. int32 status = 2;
  59. string approve_time = 3;
  60. }
  61. message ChangePasswdRequest {
  62. int64 uid = 1;
  63. string old = 2;
  64. string new = 3;
  65. }
  66. message ChangePasswdReply {
  67. }
  68. message PublicityRequest {
  69. int32 device_code = 1;
  70. string provider = 2;
  71. }
  72. message PublicityDeviceTypeItem {
  73. int32 type_code = 1;
  74. string type_name = 2;
  75. }
  76. message PublicityItem {
  77. string name = 1;
  78. string social_code = 2;
  79. repeated PublicityDeviceTypeItem devices = 3;
  80. }
  81. message PublicityReply {
  82. repeated PublicityItem list = 1;
  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. }