39 lines
1.0 KiB
Protocol Buffer
39 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
||
package corestack.user.v1;
|
||
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1";
|
||
|
||
import "corestack/enums/v1/user.proto";
|
||
|
||
message SetPasswordRequest {
|
||
corestack.enums.v1.AuthenticationType auth_type = 1; // 认证类型
|
||
string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息
|
||
string credential = 3; // 凭证,可以是验证码或旧密码
|
||
string password = 4; // 新密码
|
||
}
|
||
message SetPasswordResponse {}
|
||
|
||
message SetNameRequest { string name = 1; }
|
||
message SetNameResponse {}
|
||
|
||
message GetAvatarUploadURLRequest {}
|
||
message GetAvatarUploadURLResponse {
|
||
string key = 1;
|
||
string url = 2;
|
||
}
|
||
message SetAvatarRequest { string key = 1; }
|
||
message SetAvatarResponse {}
|
||
|
||
message SetDescriptionRequest { string description = 1; }
|
||
message SetDescriptionResponse {}
|
||
|
||
message GetUserInfoRequest {}
|
||
message GetUserInfoResponse {
|
||
string id = 1;
|
||
string avatar = 2;
|
||
string invitation_code = 3;
|
||
string description = 4;
|
||
string name = 5;
|
||
string phone = 6;
|
||
string email = 7;
|
||
}
|