go_dreamfactory/modules/items/api_sellItem.go
2022-06-30 16:13:00 +08:00

21 lines
509 B
Go

package items
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
//参数校验
func (this *apiComp) SellItemCheck(session comm.IUserSession, req *pb.ItemsSellItemReq) (result map[string]interface{}, code comm.ErrorCode) {
return
}
//出售道具
func (this *apiComp) SellItem(session comm.IUserSession, agrs map[string]interface{}, req *pb.ItemsSellItemReq) (code pb.ErrorCode) {
defer func() {
session.SendMsg(string(this.module.GetType()), "sellitem", &pb.ItemsSellItemResp{})
}()
return
}