From b7d20762aaeb4fa34087042809fa4704395f921f Mon Sep 17 00:00:00 2001 From: guzeng Date: Wed, 3 Mar 2021 17:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/user.pb.go | 16 ++++++++++++++++ user/user.proto | 2 ++ 2 files changed, 18 insertions(+) diff --git a/user/user.pb.go b/user/user.pb.go index c45fd23..25723ed 100644 --- a/user/user.pb.go +++ b/user/user.pb.go @@ -69,6 +69,7 @@ type UserResponse struct { IsVip *string `protobuf:"bytes,10,opt,name=is_vip" json:"is_vip,omitempty"` Usercode *string `protobuf:"bytes,11,opt,name=usercode" json:"usercode,omitempty"` GroupId *string `protobuf:"bytes,12,opt,name=group_id" json:"group_id,omitempty"` + Type *string `protobuf:"bytes,13,opt,name=type" json:"type,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -160,6 +161,13 @@ func (m *UserResponse) GetGroupId() string { return "" } +func (m *UserResponse) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + // 用户登录请求结构 type LoginRequest struct { Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` @@ -208,6 +216,7 @@ type LoginResponse struct { Token *string `protobuf:"bytes,11,opt,name=token" json:"token,omitempty"` Usercode *string `protobuf:"bytes,12,opt,name=usercode" json:"usercode,omitempty"` GroupId *string `protobuf:"bytes,13,opt,name=group_id" json:"group_id,omitempty"` + Type *string `protobuf:"bytes,14,opt,name=type" json:"type,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -306,6 +315,13 @@ func (m *LoginResponse) GetGroupId() string { return "" } +func (m *LoginResponse) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + func init() { } diff --git a/user/user.proto b/user/user.proto index 04bc44a..79bc70a 100644 --- a/user/user.proto +++ b/user/user.proto @@ -21,6 +21,7 @@ message UserResponse { string is_vip = 10;//是否VIP string usercode = 11;//工号 string group_id = 12;//分组ID + string type = 13;//类型 } // 用户登录请求结构 @@ -46,6 +47,7 @@ message LoginResponse { string token = 11;//token string usercode = 12;//工号 string group_id = 13;//分组ID + string type = 14;//类型 }