Browse Source

增加用户类型

master v0.1.3
guzeng 3 years ago
parent
commit
b7d20762aa
2 changed files with 18 additions and 0 deletions
  1. +16
    -0
      user/user.pb.go
  2. +2
    -0
      user/user.proto

+ 16
- 0
user/user.pb.go View File

@ -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() {
}


+ 2
- 0
user/user.proto View File

@ -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;//
}


Loading…
Cancel
Save