Commit ec6956b8 by Li Feifei

test

parent 1528762b
...@@ -5,22 +5,31 @@ package pb; ...@@ -5,22 +5,31 @@ package pb;
import "u-proto/common.proto"; import "u-proto/common.proto";
import "github.com/mwitkow/go-proto-validators/validator.proto"; import "github.com/mwitkow/go-proto-validators/validator.proto";
//注册登录 //用户注册修改
message ImUserRequest { message ImUserRequest {
Common Common = 1; Common Common = 1;
string Name = 2; string Accid = 2[(validator.field) = {string_not_empty: true}];
string Mobile = 3[(validator.field) = {string_not_empty: true, length_eq: 11}]; string Name = 3;
string Code = 4[(validator.field) = {string_not_empty: true}]; string Icon = 4;
string Platform = 5[(validator.field) = {string_not_empty: true}]; string Token = 5;
string Sign = 6;
string Email = 7;
string Birth = 8;
string Mobile = 9;
int64 Gender = 10;
string Ex = 11;
} }
message ImUserReply{ //注册返回
message ImUserRegReply{
string Token = 1;
string Accid = 2; string Accid = 2;
string Name = 3;
} }
//用户退出 //用户登录退出
message ImUserOutRequest { message ImUserLoginRequest {
Common Common = 1; Common Common = 1;
string Accid = 2[(validator.field) = {string_not_empty: true}]; string Accid = 2[(validator.field) = {string_not_empty: true}];
string Platform = 3[(validator.field) = {string_not_empty: true}]; string Platform = 3[(validator.field) = {string_not_empty: true}];
...@@ -33,6 +42,7 @@ message ImUserSetRequest { ...@@ -33,6 +42,7 @@ message ImUserSetRequest {
string Accid = 3[(validator.field) = {string_not_empty: true}]; string Accid = 3[(validator.field) = {string_not_empty: true}];
} }
//修改返回
message ImUserSetReply {} message ImUserSetReply {}
//获取单个用户信息 //获取单个用户信息
...@@ -45,16 +55,17 @@ message ImUserOneReply { ...@@ -45,16 +55,17 @@ message ImUserOneReply {
int64 Id = 1; int64 Id = 1;
string Accid = 2; string Accid = 2;
string Name = 3; string Name = 3;
string Mobile = 4; string Sing = 4;
int64 Disable = 5; string Email = 5;
int64 MuteEstoppel = 6; string Birth = 6;
int64 MuteAudioVideo = 7; string Mobile = 7;
string Ext = 8; int64 Valid = 8;
string Createtime = 9; int64 MuteEstoppel = 9;
string Updatetime = 10; int64 MuteAudioVideo = 10;
int64 LoginStatus = 11; string Ex = 11;
string Platform = 12; int64 Gender = 12;
string Edition = 13; string Createtime = 13;
string Edition = 14;
} }
//获取用户列表 //获取用户列表
...@@ -63,15 +74,12 @@ message ImUserListRequest { ...@@ -63,15 +74,12 @@ message ImUserListRequest {
int64 Page = 2; int64 Page = 2;
string Mobile = 3; string Mobile = 3;
string Name = 4; string Name = 4;
int64 Disable = 5; int64 Valid = 5;
int64 MuteEstoppel = 6; int64 MuteEstoppel = 6;
int64 MuteAudioVideo = 7; int64 MuteAudioVideo = 7;
string Ext = 8; int64 Gender = 8;
string Createtime = 9; string Createtime = 9;
string Updatetime = 10; string Edition = 10;
int64 LoginStatus = 11;
string Platform = 12;
string Edition = 13;
} }
message ImUserListReply{ message ImUserListReply{
...@@ -80,9 +88,10 @@ message ImUserListReply{ ...@@ -80,9 +88,10 @@ message ImUserListReply{
} }
service ImUser { service ImUser {
rpc ImUserRegister (ImUserRequest) returns(ImUserReply) {} rpc ImUserRegister (ImUserRequest) returns(ImUserRegReply) {}
rpc ImUserLogin (ImUserRequest) returns(ImUserReply) {} rpc ImuserSave(ImUserRequest) returns(ImUserSetReply) {}
rpc ImUserLoginOut (ImUserOutRequest) returns(ImUserSetReply) {} rpc ImUserLogin (ImUserLoginRequest) returns(ImUserRegReply) {}
rpc ImUserLoginOut (ImUserLoginRequest) returns(ImUserSetReply) {}
rpc ImUserForbiddenWords (ImUserSetRequest) returns(ImUserSetReply) {} rpc ImUserForbiddenWords (ImUserSetRequest) returns(ImUserSetReply) {}
rpc ImUserForbiddenAV (ImUserSetRequest) returns(ImUserSetReply) {} rpc ImUserForbiddenAV (ImUserSetRequest) returns(ImUserSetReply) {}
rpc ImUserOne (ImUserOneRequest) returns(ImUserOneReply) {} rpc ImUserOne (ImUserOneRequest) returns(ImUserOneReply) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment