feat: 换货退款拦截错误展示
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 11m41s

This commit is contained in:
luo
2026-07-22 10:14:13 +08:00
parent 5079f97326
commit fbfdd01eec
5 changed files with 134 additions and 7 deletions

View File

@@ -88,8 +88,11 @@ export class ExchangeService extends BaseService {
* POST /api/admin/exchanges
* @param data 创建参数
*/
static createExchange(data: CreateExchangeRequest): Promise<BaseResponse<ExchangeResponse>> {
return this.create<ExchangeResponse>('/api/admin/exchanges', data)
static createExchange(
data: CreateExchangeRequest,
config?: Record<string, any>
): Promise<BaseResponse<ExchangeResponse>> {
return this.post<BaseResponse<ExchangeResponse>>('/api/admin/exchanges', data, config)
}
/**