service/app/mix/controller/vas_op.go

25 lines
598 B
Go
Raw Normal View History

2024-01-04 18:10:19 +08:00
package controller
import (
"github.com/gin-gonic/gin"
2024-01-17 21:57:45 +08:00
"service/api/errcode"
vasproto "service/api/proto/vas/proto"
"service/app/mix/service"
"service/bizcommon/util"
"service/library/logger"
2024-01-04 18:10:19 +08:00
)
func OpOrderList(ctx *gin.Context) {
2024-01-17 21:57:45 +08:00
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)
2024-01-04 18:10:19 +08:00
}