123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-supplier-management/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;
- // 注册状态 0 待审核 1 通过 2 未通过
- int32 status = 18;
- uint32 vcode = 19;
- }
- 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;
- 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;
- string code = 3;
- }
- message ProviderItem {
- 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 feedback = 9;
- // 法定代表人
- string legal_person = 10;
- string enterprise_location = 11;
- // 证件号
- string id_cert = 12;
- // 营业执照
- string business_license = 13;
- // 诚信经营承诺书
- string integrity_management_letter = 14;
- // 法人授权书
- string legal_person_letter = 15;
- // 业务负责人任命书
- string business_responsible_letter = 16;
- // 用户名
- string user_name = 17;
- // 业务负责人
- string business_responsible = 18;
- // 业务负责人电话
- string business_responsible_phone = 19;
- string emergency_contact = 20;
- string emergency_contact_phone = 21;
- string reviewer = 22;
- }
- message ProviderInfoRequest {
- int64 id = 1;
- }
- message ProviderInfoReply {
- ProviderItem info = 1;
- }
|