user接口实现
This commit is contained in:
parent
71ef2821f2
commit
0b446c3559
@ -152,7 +152,7 @@ func (r *Robot) onUserLoaded() {
|
||||
//notify
|
||||
r.RunNotify()
|
||||
//user
|
||||
// r.RunUser()
|
||||
r.RunUser()
|
||||
|
||||
//friend
|
||||
// r.RunFriend()
|
||||
|
@ -13,7 +13,7 @@ var user_builders = []*builder{
|
||||
mainType: string(comm.SM_UserModule),
|
||||
subType: user.User_SubType_Create,
|
||||
req: &pb.UserCreateReq{ //设置请求参数
|
||||
NickName: "测试",
|
||||
NickName: "乐谷6281",
|
||||
},
|
||||
rsp: &pb.UserCreateRsp{},
|
||||
enabled: true,
|
||||
|
@ -42,3 +42,10 @@ func (this *User) GetHeroList(uid string) []*pb.DB_HeroData {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *User) QueryAttributeValue(uid string, attr string) (value int32) {
|
||||
return
|
||||
}
|
||||
|
||||
func (this *User) AddAttributeValue(uid string, attr string, add int32) (code pb.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user