chore: stabilize lint and verify builds
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
dto "quyun/v2/app/http/super/v1/dto"
|
||||
"quyun/v2/app/requests"
|
||||
"quyun/v2/app/services"
|
||||
"quyun/v2/database/models"
|
||||
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
@@ -58,3 +59,17 @@ func (c *finance) ListBalanceAnomalies(ctx fiber.Ctx, filter *dto.SuperBalanceAn
|
||||
func (c *finance) ListOrderAnomalies(ctx fiber.Ctx, filter *dto.SuperOrderAnomalyFilter) (*requests.Pager, error) {
|
||||
return services.Super.ListOrderAnomalies(ctx, filter)
|
||||
}
|
||||
|
||||
// @Router /super/v1/finance/recharge-codes/activate [post]
|
||||
// @Summary Activate recharge codes
|
||||
// @Description Batch activate recharge codes
|
||||
// @Tags Finance
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param form body dto.RechargeCodeActivateForm true "Activate form"
|
||||
// @Success 200 {object} dto.RechargeCodeActivateResponse
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind form body
|
||||
func (c *finance) ActivateRechargeCodes(ctx fiber.Ctx, user *models.User, form *dto.RechargeCodeActivateForm) (*dto.RechargeCodeActivateResponse, error) {
|
||||
return services.Recharge.ActivateCodes(ctx, user.ID, form)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user