go_dreamfactory/modules/pack/api_sellItem.go
2022-06-09 13:36:57 +08:00

23 lines
429 B
Go

package pack
import (
"context"
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
//出售道具
func (this *Api_Comp) SellItem(ctx context.Context, session comm.IUserSession, req *pb.SellItemReq) (err error) {
var (
code pb.ErrorCode
)
defer func() {
session.SendMsg(string(this.module.GetType()), SellItemResp, code, &pb.SellItemResp{})
}()
if !session.IsLogin() {
code = pb.ErrorCode_NoLogin
return
}
return
}