Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit. On branch develop Your branch is ahead of 'goflyapp/develop' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: zlt-business/order-center/src/main/java/com/central/order/controller/OrderController.java modified: zlt-business/order-center/src/main/java/com/central/order/enums/MessageTemplateEnum.java modified: zlt-business/order-center/src/main/java/com/central/order/enums/OrderStatusChangeEnum.java modified: zlt-business/order-center/src/main/java/com/central/order/event/OrderStatusChangeEvent.java modified: zlt-business/order-center/src/main/java/com/central/order/listener/OrderStatusChangeListener.java modified: zlt-business/order-center/src/main/java/com/central/order/mapper/MessageMapper.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/MessageServiceImpl.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/OrderServiceImpl.java modified: zlt-business/order-center/src/main/resources/mapper/MessageMapper.xml modified: zlt-business/order-center/src/main/resources/mapper/OrderMapper.xml modified: zlt-web/react-web/src/main/frontend/src/services/message/api.ts
This commit is contained in:
@@ -2,12 +2,13 @@ import { request } from 'umi';
|
||||
|
||||
/** 获取消息列表 */
|
||||
export async function getMessages(params: any) {
|
||||
const { current, pageSize, ...restParams } = params;
|
||||
return request<API.Response<MESSAGE.Message[]>>('/api-order/messages', {
|
||||
method: 'GET',
|
||||
params: {
|
||||
page: params.current,
|
||||
limit: params.pageSize,
|
||||
...params
|
||||
page: params.page || 1,
|
||||
limit: params.limit || 20,
|
||||
...restParams
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user