service/app/mix/controller/account_cancellation_api.go

28 lines
741 B
Go
Raw Normal View History

2024-03-07 01:43:30 +08:00
package controller
import (
"service/api/errcode"
account_cancellationproto "service/api/proto/account_cancellation/proto"
"service/app/mix/service"
"service/bizcommon/util"
"service/library/logger"
"github.com/gin-gonic/gin"
)
func ApiGetAccountCancellationListByMid(ctx *gin.Context) {
req := ctx.MustGet("client_req").(*account_cancellationproto.ApiListByMidReq)
vo, ec := service.DefaultService.ApiGetAccountCancellationListByMid(ctx, req)
if ec != errcode.ErrCodeAccountCancellationSrvOk {
logger.Error("ApiGetAccountCancellationList fail, req: %v, ec: %v", util.ToJson(req), ec)
ReplyErrCodeMsg(ctx, ec)
return
}
data := &account_cancellationproto.ApiListByMidData{
ApiListByMidVO: vo,
}
ReplyOk(ctx, data)
}