diff --git a/modules/equipment/api_equip.go b/modules/equipment/api_equip.go index 7ad3d8300..633b82523 100644 --- a/modules/equipment/api_equip.go +++ b/modules/equipment/api_equip.go @@ -8,7 +8,7 @@ import ( ) //参数校验 -func (this *apiComp) Equip_Check(session comm.IUserSession, req *pb.Equipment_Equip_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) EquipCheck(session comm.IUserSession, req *pb.Equipment_Equip_Req) (result map[string]interface{}, code comm.ErrorCode) { var ( err error errorCode pb.ErrorCode diff --git a/modules/equipment/api_getlist.go b/modules/equipment/api_getlist.go index 29e599293..c79786ae9 100644 --- a/modules/equipment/api_getlist.go +++ b/modules/equipment/api_getlist.go @@ -7,7 +7,7 @@ import ( ) //参数校验 -func (this *apiComp) Getlist_Check(session comm.IUserSession, req *pb.Equipment_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) GetlistCheck(session comm.IUserSession, req *pb.Equipment_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) { return } diff --git a/modules/equipment/api_upgrade.go b/modules/equipment/api_upgrade.go index db3f0710b..8eb8c37c0 100644 --- a/modules/equipment/api_upgrade.go +++ b/modules/equipment/api_upgrade.go @@ -12,7 +12,7 @@ import ( ) //参数校验 -func (this *apiComp) Upgrade_Check(session comm.IUserSession, req *pb.Equipment_Upgrade_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) UpgradeCheck(session comm.IUserSession, req *pb.Equipment_Upgrade_Req) (result map[string]interface{}, code comm.ErrorCode) { var ( err error conf *cfg.Game_equipData diff --git a/modules/friend/api_addblack.go b/modules/friend/api_addblack.go index d565f1230..0d20edf6c 100644 --- a/modules/friend/api_addblack.go +++ b/modules/friend/api_addblack.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Addblack_Check(session comm.IUserSession, req *pb.Friend_BlackAdd_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) AddblackCheck(session comm.IUserSession, req *pb.Friend_BlackAdd_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) var ( err error diff --git a/modules/friend/api_agree.go b/modules/friend/api_agree.go index cb0aa4c52..0fda04344 100644 --- a/modules/friend/api_agree.go +++ b/modules/friend/api_agree.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Agree_Check(session comm.IUserSession, req *pb.Friend_Agree_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) AgreeCheck(session comm.IUserSession, req *pb.Friend_Agree_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) var err error self := &pb.DB_FriendData{UId: session.GetUserId()} diff --git a/modules/friend/api_apply.go b/modules/friend/api_apply.go index 532c2831d..fa2b6765f 100644 --- a/modules/friend/api_apply.go +++ b/modules/friend/api_apply.go @@ -7,7 +7,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Apply_Check(session comm.IUserSession, req *pb.Friend_Apply_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) ApplyCheck(session comm.IUserSession, req *pb.Friend_Apply_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) var err error self := &pb.DB_FriendData{UId: session.GetUserId()} diff --git a/modules/friend/api_applylist.go b/modules/friend/api_applylist.go index 158684e4c..abb91678b 100644 --- a/modules/friend/api_applylist.go +++ b/modules/friend/api_applylist.go @@ -5,7 +5,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) ApplyList_Check(session comm.IUserSession, req *pb.Friend_ApplyList_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) ApplyListCheck(session comm.IUserSession, req *pb.Friend_ApplyList_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) self := &pb.DB_FriendData{UId: session.GetUserId()} err := this.module.modelFriend.Get(session.GetUserId(), self) diff --git a/modules/friend/api_blacklist.go b/modules/friend/api_blacklist.go index 710075960..7f19c1464 100644 --- a/modules/friend/api_blacklist.go +++ b/modules/friend/api_blacklist.go @@ -5,7 +5,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) Blacklist_Check(session comm.IUserSession, req *pb.Friend_BlackList_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) BlacklistCheck(session comm.IUserSession, req *pb.Friend_BlackList_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) self := &pb.DB_FriendData{UId: session.GetUserId()} err := this.module.modelFriend.Get(session.GetUserId(), self) diff --git a/modules/friend/api_del.go b/modules/friend/api_del.go index b7e765035..cfed5b67b 100644 --- a/modules/friend/api_del.go +++ b/modules/friend/api_del.go @@ -5,7 +5,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) Del_Check(session comm.IUserSession, req *pb.Friend_Del_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) DelCheck(session comm.IUserSession, req *pb.Friend_Del_Req) (chk map[string]interface{}, code comm.ErrorCode) { return } diff --git a/modules/friend/api_delblack.go b/modules/friend/api_delblack.go index e7111c72e..c74d01d32 100644 --- a/modules/friend/api_delblack.go +++ b/modules/friend/api_delblack.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Delblack_Check(session comm.IUserSession, req *pb.Friend_DelBlack_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) DelblackCheck(session comm.IUserSession, req *pb.Friend_DelBlack_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) self := &pb.DB_FriendData{UId: session.GetUserId()} err := this.module.modelFriend.Get(session.GetUserId(), self) diff --git a/modules/friend/api_list.go b/modules/friend/api_list.go index e0e4372f9..183ec2fa2 100644 --- a/modules/friend/api_list.go +++ b/modules/friend/api_list.go @@ -5,7 +5,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) List_Check(session comm.IUserSession, req *pb.Friend_List_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.Friend_List_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) self := &pb.DB_FriendData{UId: session.GetUserId()} err := this.module.modelFriend.Get(session.GetUserId(), self) diff --git a/modules/friend/api_refuse.go b/modules/friend/api_refuse.go index d19be82c3..4e465f234 100644 --- a/modules/friend/api_refuse.go +++ b/modules/friend/api_refuse.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Refuse_Check(session comm.IUserSession, req *pb.Friend_Refuse_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) RefuseCheck(session comm.IUserSession, req *pb.Friend_Refuse_Req) (chk map[string]interface{}, code comm.ErrorCode) { chk = make(map[string]interface{}) var err error self := &pb.DB_FriendData{UId: session.GetUserId()} diff --git a/modules/friend/api_search.go b/modules/friend/api_search.go index cdbcdd518..9af50a42a 100644 --- a/modules/friend/api_search.go +++ b/modules/friend/api_search.go @@ -5,7 +5,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) Search_Check(session comm.IUserSession, req *pb.Friend_Search_Req) (chk map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) SearchCheck(session comm.IUserSession, req *pb.Friend_Search_Req) (chk map[string]interface{}, code comm.ErrorCode) { if req.NickName == "" { code = comm.ErrorCode{Code: pb.ErrorCode_FriendSearchNameEmpty} return diff --git a/modules/hero/api_heroStarUp.go b/modules/hero/api_heroStarUp.go index 50e8ce207..52db12bbe 100644 --- a/modules/hero/api_heroStarUp.go +++ b/modules/hero/api_heroStarUp.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) StrengthenUpStar_Check(session comm.IUserSession, req *pb.Hero_StrengthenUpStar_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.Hero_StrengthenUpStar_Req) (result map[string]interface{}, code comm.ErrorCode) { if req.HeroObjID == "" { code.Code = pb.ErrorCode_ReqParameterError return diff --git a/modules/hero/api_heroStrengthen.go b/modules/hero/api_heroStrengthen.go index ff000c134..40d9afe32 100644 --- a/modules/hero/api_heroStrengthen.go +++ b/modules/hero/api_heroStrengthen.go @@ -7,7 +7,7 @@ import ( ) //参数校验 -func (this *apiComp) StrengthenUplv_Check(session comm.IUserSession, req *pb.Hero_StrengthenUplv_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) StrengthenUplvCheck(session comm.IUserSession, req *pb.Hero_StrengthenUplv_Req) (result map[string]interface{}, code comm.ErrorCode) { if req.HeroObjID == "" { code.Code = pb.ErrorCode_ReqParameterError return diff --git a/modules/hero/api_info.go b/modules/hero/api_info.go index d746c897e..dc1028543 100644 --- a/modules/hero/api_info.go +++ b/modules/hero/api_info.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) Info_Check(session comm.IUserSession, req *pb.Hero_Info_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.Hero_Info_Req) (result map[string]interface{}, code comm.ErrorCode) { result = map[string]interface{}{} hero := this.moduleHero.modelHero.getOneHero(session.GetUserId(), req.HeroId) if hero == nil { diff --git a/modules/hero/api_list.go b/modules/hero/api_list.go index e0cf7d043..ee2e47b63 100644 --- a/modules/hero/api_list.go +++ b/modules/hero/api_list.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) List_Check(session comm.IUserSession, req *pb.Hero_List_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.Hero_List_Req) (result map[string]interface{}, code comm.ErrorCode) { return } diff --git a/modules/items/api_getlist.go b/modules/items/api_getlist.go index 12d5d6a9a..33f5a53ee 100644 --- a/modules/items/api_getlist.go +++ b/modules/items/api_getlist.go @@ -8,7 +8,7 @@ import ( ) //参数校验 -func (this *apiComp) Getlist_Check(session comm.IUserSession, req *pb.Items_Getlist_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) GetlistCheck(session comm.IUserSession, req *pb.Items_Getlist_Req) (result map[string]interface{}, code comm.ErrorCode) { result = map[string]interface{}{"ce": 123} return } diff --git a/modules/items/api_sellItem.go b/modules/items/api_sellItem.go index 84310d85f..91c1e3bfc 100644 --- a/modules/items/api_sellItem.go +++ b/modules/items/api_sellItem.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) SellItem_Check(session comm.IUserSession, req *pb.Items_SellItem_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) SellItemCheck(session comm.IUserSession, req *pb.Items_SellItem_Req) (result map[string]interface{}, code comm.ErrorCode) { return } diff --git a/modules/items/api_useItem.go b/modules/items/api_useItem.go index 828bf9d41..c9849564b 100644 --- a/modules/items/api_useItem.go +++ b/modules/items/api_useItem.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) Useitem_Check(session comm.IUserSession, req *pb.Items_UseItem_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) UseitemCheck(session comm.IUserSession, req *pb.Items_UseItem_Req) (result map[string]interface{}, code comm.ErrorCode) { return } diff --git a/modules/user/api_create.go b/modules/user/api_create.go index 10ee383f4..a7715c854 100644 --- a/modules/user/api_create.go +++ b/modules/user/api_create.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/utils" ) -func (this *apiComp) Create_Check(session comm.IUserSession, req *pb.UserCreateReq) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) CreateCheck(session comm.IUserSession, req *pb.UserCreateReq) (result map[string]interface{}, code comm.ErrorCode) { result = make(map[string]interface{}) self := &pb.DB_UserData{} err := this.module.modelUser.Get(session.GetUserId(), self) diff --git a/modules/user/api_login.go b/modules/user/api_login.go index 142e270a0..10359020c 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -12,7 +12,7 @@ import ( ) //参数校验 -func (this *apiComp) Login_Check(session comm.IUserSession, req *pb.UserLoginReq) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) LoginCheck(session comm.IUserSession, req *pb.UserLoginReq) (result map[string]interface{}, code comm.ErrorCode) { result = map[string]interface{}{} return } diff --git a/modules/user/api_logout.go b/modules/user/api_logout.go index 761d48389..995048311 100644 --- a/modules/user/api_logout.go +++ b/modules/user/api_logout.go @@ -6,7 +6,7 @@ import ( "go_dreamfactory/pb" ) -func (this *apiComp) Logout_Check(session comm.IUserSession, req *pb.UserLoginReq) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) LogoutCheck(session comm.IUserSession, req *pb.UserLoginReq) (result map[string]interface{}, code comm.ErrorCode) { return }