28 lines
741 B
Go
28 lines
741 B
Go
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)
|
|
}
|