syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package v1; // 用于生成指定语言go的包名称 option go_package = "smart-supplier-management-gateway/pb/v1"; message RegisterRequest { // 供应商名称 string name = 1; // 统一社会信用码 string social_code = 2; // 法定代表人 string legal_person = 3; // 所属 int32 enterprise_location = 4; // 证件号 string id_cert = 5; // 营业执照 repeated string business_license = 6; // 诚信经营承诺书 repeated string integrity_management_letter = 7; // 法人授权书 repeated string legal_person_letter = 8; // 业务负责人任命书 repeated string business_responsible_letter = 9; // 用户名 string user_name = 10; // 密码 string passwd = 11; // 业务联系人 string business_contact = 12; // 业务联系人电话 string business_contact_phone = 13; // 业务负责人 string business_responsible = 14; // 业务负责人电话 string business_responsible_phone = 15; string emergency_contact = 16; string emergency_contact_phone = 17; uint32 vcode = 19; // 注册状态 0 待审核 1 通过 2 未通过 //int32 status = 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 ProviderApproveStatusRequest { string social_code = 1; } message ProviderApproveStatusReply { string feedback = 1; int32 status = 2; string approve_time = 3; } 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; } message UserInfoReply { string email = 1; string phone = 2; }