package controller import ( "github.com/gin-gonic/gin" "service/api/errcode" vasproto "service/api/proto/vas/proto" "service/app/mix/service" "service/bizcommon/util" "service/library/logger" ) func OpOrderList(ctx *gin.Context) { req := ctx.MustGet("client_req").(*vasproto.OpCoinOrderListReq) list, ec := service.DefaultService.OpCoinOrderList(ctx, req) if ec != errcode.ErrCodeVasSrvOk { logger.Error("OpCoinOrderList fail, req: %v, ec: %v", util.ToJson(req), ec) ReplyErrCodeMsg(ctx, ec) return } data := &vasproto.OpCoinOrderListData{ List: list, } ReplyOk(ctx, data) }