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;//类型 }