Skip to content

Commit

Permalink
message update notice for retail module
Browse files Browse the repository at this point in the history
  • Loading branch information
Jzow committed Jul 30, 2024
1 parent 9592a6a commit ee03e89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions web/src/api/retail/refund.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {defHttp} from '/@/utils/http/axios';
import {defHttp} from '@/utils/http/axios';
import {BaseDataResp, BaseResp} from "@/api/model/baseModel";
import { QueryShipmentsReq } from "@/api/retail/model/shipmentsModel"
import {
Expand Down Expand Up @@ -28,8 +28,8 @@ export function getRefundPageList(params: QueryShipmentsReq) {
}

export function addOrUpdateRefund(params: AddOrUpdateRefundReq,
successMode: SuccessMessageMode = 'message',
errorMode: ErrorMessageMode = 'message',) {
successMode: SuccessMessageMode = 'notice',
errorMode: ErrorMessageMode = 'notice',) {
return defHttp.post<BaseResp>(
{
url: API.AddOrUpdate,
Expand Down Expand Up @@ -58,7 +58,7 @@ export function getLinkRefundDetail(otherReceipt: string) {
);
}

export function updateRefundStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') {
export function updateRefundStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') {
return defHttp.put<BaseResp>(
{
url: `${API.UpdateStatus}?ids=${ids}&status=${status}`,
Expand All @@ -70,7 +70,7 @@ export function updateRefundStatus(ids: string[], status: number, successMode: S
);
}

export function deleteRefund(ids: string[], successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') {
export function deleteRefund(ids: string[], successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') {
return defHttp.post<BaseResp>(
{
url: `${API.Delete}?ids=${ids}`,
Expand Down
14 changes: 7 additions & 7 deletions web/src/api/retail/shipments.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {defHttp} from '/@/utils/http/axios';
import {defHttp} from '@/utils/http/axios';
import {BaseDataResp, BaseResp} from "@/api/model/baseModel";
import {
AddOrUpdateShipmentsReq, AddOrUpdateShipmentsResp,
Expand Down Expand Up @@ -38,8 +38,8 @@ export function getShipmentsList(params: QueryShipmentsReq) {
}

export function addOrUpdateShipments(params: AddOrUpdateShipmentsReq,
successMode: SuccessMessageMode = 'message',
errorMode: ErrorMessageMode = 'message',) {
successMode: SuccessMessageMode = 'notice',
errorMode: ErrorMessageMode = 'notice',) {
return defHttp.post<BaseResp>(
{
url: API.AddOrUpdate,
Expand All @@ -52,7 +52,7 @@ export function addOrUpdateShipments(params: AddOrUpdateShipmentsReq,
);
}

export function deleteShipments(ids: string[], successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') {
export function deleteShipments(ids: string[], successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') {
return defHttp.post<BaseResp>(
{
url: `${API.DeleteBatch}?ids=${ids}`,
Expand All @@ -64,7 +64,7 @@ export function deleteShipments(ids: string[], successMode: SuccessMessageMode =
);
}

export function updateShipmentsStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') {
export function updateShipmentsStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') {
return defHttp.put<BaseResp>(
{
url: `${API.UpdateStatus}?ids=${ids}&status=${status}`,
Expand All @@ -76,7 +76,7 @@ export function updateShipmentsStatus(ids: string[], status: number, successMode
);
}

export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageMode = 'message') {
export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageMode = 'notice') {
return defHttp.get<BaseDataResp<AddOrUpdateShipmentsReq>>(
{
url: `${API.GetDetail}/${id}`,
Expand All @@ -87,7 +87,7 @@ export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageM
);
}

export function getLinkShipmentsDetail(otherReceipt: string, errorMode: ErrorMessageMode = 'message') {
export function getLinkShipmentsDetail(otherReceipt: string, errorMode: ErrorMessageMode = 'notice') {
return defHttp.get<BaseDataResp<AddOrUpdateShipmentsResp>>(
{
url: `${API.GetLinkShipmentDetail}/${otherReceipt}`,
Expand Down

0 comments on commit ee03e89

Please sign in to comment.