24 lines
585 B
Go
24 lines
585 B
Go
package user
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
func (this *apiComp) GetsettingCheck(session comm.IUserSession, req *pb.UserGetSettingReq) (errdata *pb.ErrorData) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) Getsetting(session comm.IUserSession, req *pb.UserGetSettingReq) (errdata *pb.ErrorData) {
|
|
if errdata = this.GetsettingCheck(session, req); errdata != nil {
|
|
return
|
|
}
|
|
|
|
rsp := &pb.UserGetSettingResp{}
|
|
rsp.Setting = this.module.modelSetting.GetSetting(session.GetUserId())
|
|
|
|
session.SendMsg(string(this.module.GetType()), UserSubTypeGetSetting, rsp)
|
|
|
|
return
|
|
}
|