This commit is contained in:
@@ -48,6 +48,12 @@ type AgentRechargeRejectRequest struct {
|
||||
RejectionReason string `json:"rejection_reason" validate:"required,max=500" required:"true" description:"驳回原因(必填,最多500字)"`
|
||||
}
|
||||
|
||||
// AgentRechargeRejectParams 驳回代理充值订单聚合参数(用于文档生成)
|
||||
type AgentRechargeRejectParams struct {
|
||||
IDReq
|
||||
AgentRechargeRejectRequest
|
||||
}
|
||||
|
||||
// AgentRechargeListRequest 代理充值记录列表请求
|
||||
type AgentRechargeListRequest struct {
|
||||
Page int `json:"page" query:"page" validate:"omitempty,min=1" minimum:"1" description:"页码,默认1"`
|
||||
|
||||
@@ -56,7 +56,7 @@ func registerAgentRechargeRoutes(router fiber.Router, handler *admin.AgentRechar
|
||||
Register(group, doc, groupPath, "POST", "/:id/reject", handler.Reject, RouteSpec{
|
||||
Summary: "驳回代理充值订单",
|
||||
Tags: []string{"代理预充值"},
|
||||
Input: new(dto.AgentRechargeRejectRequest),
|
||||
Input: new(dto.AgentRechargeRejectParams),
|
||||
Output: nil,
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user