123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-enterprise-management-gateway/pb/v1";
- message RegisterRequest {
- // 公司名称
- string name = 1;
- // 统一社会信用码
- string social_code = 2;
- // 法定代表人
- string legal_person = 3;
- // 证件号
- string id_cert = 4;
- // 营业执照
- repeated string business_license = 5;
- // 用户名
- string user_name = 6;
- // 密码
- string passwd = 7;
- // 业务联系人
- string business_contact = 8;
- // 业务联系人电话
- string business_contact_phone = 9;
- // 业务负责人
- string business_responsible = 10;
- // 业务负责人电话
- string business_responsible_phone = 11;
- string emergency_contact = 12;
- string emergency_contact_phone = 13;
- // 注册状态 0 待审核 1 通过 2 未通过
- int32 status = 14;
- string province = 15;
- string city = 16;
- string zone = 17;
- uint32 vcode = 18;
- }
- message RegisterReply {
- }
- message LoginRequest {
- string user = 1;
- string password = 2;
- }
- message LoginReply {
- int64 uid = 1;
- }
- message PublicityRequest {
- int32 device_code = 1;
- string provider = 2;
- }
- message PublicityDeviceTypeItem {
- int32 type_code = 1;
- string type_name = 2;
- }
- message PublicityItem {
- string name = 1;
- string social_code = 2;
- repeated PublicityDeviceTypeItem devices = 3;
- }
- message PublicityReply {
- repeated PublicityItem list = 1;
- }
- message SetPasswdRequest {
- string phone = 2;
- string passwd = 1;
- }
- message SetPasswdReply {
- }
- message CompanyApproveStatusRequest {
- string social_code = 1;
- }
- message CompanyApproveStatusReply {
- string feedback = 1;
- int32 status = 2;
- string approve_time = 3;
- string reviewer = 4;
- }
- message ChangePasswdRequest {
- int64 uid = 1;
- string old = 2;
- string new = 3;
- }
- message ChangePasswdReply {
- }
- message EmailUpdateRequest {
- int64 id = 1;
- string email = 2;
- }
- message EmailUpdateReply {
- }
- message EmailPrepareRequest {
- int64 id = 1;
- string password = 2;
- string email = 3;
- }
- message EmailPrepareReply {
- }
- message PhoneUpdateRequest {
- int64 id = 1;
- string phone = 2;
- }
- message PhoneUpdateReply {
- }
- message UserInfoRequest {
- int64 id = 1;
- string phone = 2;
- }
- message UserInfoReply {
- string email = 1;
- string phone = 2;
- }
- message CompanyItem {
- int64 id = 1;
- string name = 2;
- string social_code = 3;
- string business_contact = 4;
- string business_contact_phone = 5;
- string apply_time = 6;
- string approve_time = 7;
- int32 status = 8;
- string province = 9;
- string city = 10;
- string zone = 11;
- // 法定代表人
- string legal_person = 12;
- // 证件号
- string id_cert = 13;
- // 营业执照
- string business_license = 14;
- // 用户名
- string user_name = 15;
- // 业务负责人
- string business_responsible = 16;
- // 业务负责人电话
- string business_responsible_phone = 17;
- // 紧急联系人
- string emergency_contact = 18;
- // 紧急联系人电话
- string emergency_contact_phone = 19;
- string feedback = 20;
- string reviewer = 21;
- }
- message CompanyInfoRequest {
- int64 id = 1;
- }
- message CompanyInfoReply {
- CompanyItem info = 1;
- }
|