refactor: 重构入参类型引用
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
// data: 包含家具列表的输入信息
|
||||
// c: 当前玩家对象
|
||||
// 返回: 空结果和错误码
|
||||
func (h Controller) SetFitment(data *room.SET_FITMENT, c *player.Player) (result *room.NullInfo, err errorcode.ErrorCode) {
|
||||
func (h Controller) SetFitment(data *SET_FITMENT, c *player.Player) (result *room.NullInfo, err errorcode.ErrorCode) {
|
||||
|
||||
c.Service.Room.Set(data.Fitments)
|
||||
return
|
||||
@@ -23,7 +23,7 @@ func (h Controller) SetFitment(data *room.SET_FITMENT, c *player.Player) (result
|
||||
// data: 包含精灵展示列表的输入信息
|
||||
// c: 当前玩家对象
|
||||
// 返回: 精灵展示列表和错误码
|
||||
func (h Controller) SetPet(data *room.C2S_PET_ROOM_SHOW, c *player.Player) (result *room.S2C_PET_ROOM_SHOW, err errorcode.ErrorCode) {
|
||||
func (h Controller) SetPet(data *C2S_PET_ROOM_SHOW, c *player.Player) (result *room.S2C_PET_ROOM_SHOW, err errorcode.ErrorCode) {
|
||||
var showPetCatchTimes []uint32
|
||||
for _, petShowInfo := range data.PetShowList {
|
||||
if petShowInfo.CatchTime != 0 {
|
||||
|
||||
Reference in New Issue
Block a user