user接口实现

This commit is contained in:
zhaocy 2022-06-28 14:18:30 +08:00
parent 71ef2821f2
commit 0b446c3559
3 changed files with 9 additions and 2 deletions

View File

@ -152,7 +152,7 @@ func (r *Robot) onUserLoaded() {
//notify
r.RunNotify()
//user
// r.RunUser()
r.RunUser()
//friend
// r.RunFriend()

View File

@ -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,

View File

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