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 //notify
r.RunNotify() r.RunNotify()
//user //user
// r.RunUser() r.RunUser()
//friend //friend
// r.RunFriend() // r.RunFriend()

View File

@ -13,7 +13,7 @@ var user_builders = []*builder{
mainType: string(comm.SM_UserModule), mainType: string(comm.SM_UserModule),
subType: user.User_SubType_Create, subType: user.User_SubType_Create,
req: &pb.UserCreateReq{ //设置请求参数 req: &pb.UserCreateReq{ //设置请求参数
NickName: "测试", NickName: "乐谷6281",
}, },
rsp: &pb.UserCreateRsp{}, rsp: &pb.UserCreateRsp{},
enabled: true, enabled: true,

View File

@ -42,3 +42,10 @@ func (this *User) GetHeroList(uid string) []*pb.DB_HeroData {
return nil 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
}