雷的新建分支
This commit is contained in:
67
src/api/system/publish.ts
Normal file
67
src/api/system/publish.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
import request from "../utils/request";
|
||||
interface paramsType {
|
||||
cluster?: string,
|
||||
contentType?: string,
|
||||
noticeTitle?: string,
|
||||
noticeType?: string,
|
||||
publishId?: number,
|
||||
sendType?: string,
|
||||
pageNum?: number,
|
||||
pageSize?: number
|
||||
}
|
||||
|
||||
interface addParamsType {
|
||||
action?: string,
|
||||
cluster?: string,
|
||||
contentType?: string,
|
||||
noticeContent?: string,
|
||||
noticeTitle?: string,
|
||||
noticeType?:string,
|
||||
remark?:string,
|
||||
sendType?: string,
|
||||
senderIds?:number[]
|
||||
}
|
||||
export const getDataListAPI = (params:paramsType) => {
|
||||
return request({
|
||||
url: "/notice/notice",
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const getUserListAPI = () => {
|
||||
return request({
|
||||
url: "/admin/user",
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getRolesListAPI = () => {
|
||||
return request({
|
||||
url: "/admin/role",
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getDeptsListAPI = () => {
|
||||
return request({
|
||||
url: "/admin/dept",
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addDataAPI=(addParams:addParamsType)=>{
|
||||
return request({
|
||||
url:`/notice/notice`,
|
||||
method:'post',
|
||||
data:addParams
|
||||
})
|
||||
}
|
||||
export const deleteDataAPI=(noticeId:number)=>{
|
||||
return request({
|
||||
url:`/notice/notice/${noticeId}`,
|
||||
method:'delete',
|
||||
})
|
||||
}
|
||||
export const getDataAPI=(noticeId:number)=>{
|
||||
return request({
|
||||
url:`/notice/notice/${noticeId}`,
|
||||
method:'get',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user