feat: sale add create user
This commit is contained in:
@@ -50,6 +50,64 @@ message UserStatusReq {
|
||||
int32 status = 2;
|
||||
}
|
||||
|
||||
message EnsureBizIdentityReq {
|
||||
string mobile = 1;
|
||||
string name = 2;
|
||||
string avatar = 3;
|
||||
uint32 gender = 4;
|
||||
string birthday = 5;
|
||||
string client_code = 6;
|
||||
string credential_type = 7;
|
||||
string identifier = 8;
|
||||
string secret = 9;
|
||||
}
|
||||
|
||||
message EnsureBizIdentityData {
|
||||
int64 user_id = 1;
|
||||
bool created = 2;
|
||||
string mobile = 3;
|
||||
string name = 4;
|
||||
}
|
||||
|
||||
message UsersByIdsReq {
|
||||
repeated int64 ids = 1;
|
||||
}
|
||||
|
||||
message UserBriefItem {
|
||||
int64 id = 1;
|
||||
string mobile = 2;
|
||||
string name = 3;
|
||||
string avatar = 4;
|
||||
uint32 gender = 5;
|
||||
string birthday = 6;
|
||||
uint32 status = 7;
|
||||
}
|
||||
|
||||
message UsersByIdsData {
|
||||
repeated UserBriefItem items = 1;
|
||||
}
|
||||
|
||||
// 内部:修改用户手机号(同步凭证 identifier)
|
||||
message UpdateMobileReq {
|
||||
int64 user_id = 1;
|
||||
string mobile = 2; // 新手机号明文
|
||||
}
|
||||
|
||||
message UpdateMobileData {
|
||||
int64 user_id = 1;
|
||||
string mobile = 2; // 加密后手机号
|
||||
}
|
||||
|
||||
// 内部:撤销业务端开通(删除/禁用销售或门店时)
|
||||
message RevokeBizClientReq {
|
||||
int64 user_id = 1;
|
||||
string client_code = 2;
|
||||
}
|
||||
|
||||
message RevokeBizClientData {
|
||||
bool revoked = 1;
|
||||
}
|
||||
|
||||
service User {
|
||||
rpc Register(RegisterReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
@@ -81,4 +139,9 @@ service User {
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
rpc EnsureBizIdentity(EnsureBizIdentityReq) returns (EnsureBizIdentityData);
|
||||
rpc UsersByIds(UsersByIdsReq) returns (UsersByIdsData);
|
||||
rpc UpdateMobile(UpdateMobileReq) returns (UpdateMobileData);
|
||||
rpc RevokeBizClient(RevokeBizClientReq) returns (RevokeBizClientData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user