update 调整代码格式
This commit is contained in:
		| @ -3,43 +3,43 @@ import { NoticeForm, NoticeQuery, NoticeVO } from './types'; | ||||
| import { AxiosPromise } from 'axios'; | ||||
| // 查询公告列表 | ||||
| export function listNotice(query: NoticeQuery): AxiosPromise<NoticeVO[]> { | ||||
| 	return request({ | ||||
| 		url: '/system/notice/list', | ||||
| 		method: 'get', | ||||
| 		params: query | ||||
| 	}); | ||||
|   return request({ | ||||
|     url: '/system/notice/list', | ||||
|     method: 'get', | ||||
|     params: query | ||||
|   }); | ||||
| } | ||||
|  | ||||
| // 查询公告详细 | ||||
| export function getNotice(noticeId: string | number): AxiosPromise<NoticeVO> { | ||||
| 	return request({ | ||||
| 		url: '/system/notice/' + noticeId, | ||||
| 		method: 'get' | ||||
| 	}); | ||||
|   return request({ | ||||
|     url: '/system/notice/' + noticeId, | ||||
|     method: 'get' | ||||
|   }); | ||||
| } | ||||
|  | ||||
| // 新增公告 | ||||
| export function addNotice(data: NoticeForm) { | ||||
| 	return request({ | ||||
| 		url: '/system/notice', | ||||
| 		method: 'post', | ||||
| 		data: data | ||||
| 	}); | ||||
|   return request({ | ||||
|     url: '/system/notice', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }); | ||||
| } | ||||
|  | ||||
| // 修改公告 | ||||
| export function updateNotice(data: NoticeForm) { | ||||
| 	return request({ | ||||
| 		url: '/system/notice', | ||||
| 		method: 'put', | ||||
| 		data: data | ||||
| 	}); | ||||
|   return request({ | ||||
|     url: '/system/notice', | ||||
|     method: 'put', | ||||
|     data: data | ||||
|   }); | ||||
| } | ||||
|  | ||||
| // 删除公告 | ||||
| export function delNotice(noticeId: string | number | Array<string | number>) { | ||||
| 	return request({ | ||||
| 		url: '/system/notice/' + noticeId, | ||||
| 		method: 'delete' | ||||
| 	}); | ||||
|   return request({ | ||||
|     url: '/system/notice/' + noticeId, | ||||
|     method: 'delete' | ||||
|   }); | ||||
| } | ||||
|  | ||||
| @ -1,26 +1,26 @@ | ||||
| export interface NoticeVO extends BaseEntity { | ||||
| 	noticeId: number; | ||||
| 	noticeTitle: string; | ||||
| 	noticeType: string; | ||||
| 	noticeContent: string; | ||||
| 	status: string; | ||||
| 	remark: string; | ||||
| 	createByName: string; | ||||
|   noticeId: number; | ||||
|   noticeTitle: string; | ||||
|   noticeType: string; | ||||
|   noticeContent: string; | ||||
|   status: string; | ||||
|   remark: string; | ||||
|   createByName: string; | ||||
| } | ||||
|  | ||||
| export interface NoticeQuery extends PageQuery { | ||||
| 	noticeTitle: string; | ||||
| 	createByName: string; | ||||
| 	status: string; | ||||
| 	noticeType: string; | ||||
|   noticeTitle: string; | ||||
|   createByName: string; | ||||
|   status: string; | ||||
|   noticeType: string; | ||||
| } | ||||
|  | ||||
| export interface NoticeForm { | ||||
| 	noticeId: number | string | undefined; | ||||
| 	noticeTitle: string; | ||||
| 	noticeType: string; | ||||
| 	noticeContent: string; | ||||
| 	status: string; | ||||
| 	remark: string; | ||||
| 	createByName: string; | ||||
|   noticeId: number | string | undefined; | ||||
|   noticeTitle: string; | ||||
|   noticeType: string; | ||||
|   noticeContent: string; | ||||
|   status: string; | ||||
|   remark: string; | ||||
|   createByName: string; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 疯狂的狮子Li
					疯狂的狮子Li