feat: 公告支持设置通知范围

This commit is contained in:
kiki1373639299
2024-10-23 16:26:28 +08:00
committed by Charles_7c
parent b13f2ca91d
commit 354b6bc6d5
7 changed files with 418 additions and 25 deletions

View File

@@ -40,6 +40,7 @@ export interface UserQuery {
createTime?: Array<string>
deptId?: string
sort: Array<string>
userIds?: Array<string>
}
export interface UserPageQuery extends UserQuery, PageQuery {
@@ -190,6 +191,8 @@ export interface NoticeResp {
type: string
effectiveTime: string
terminateTime: string
noticeScope: number
noticeUsers: Array<string>
createUserString: string
createTime: string
updateUserString: string

View File

@@ -9,6 +9,9 @@ const BASE_URL = '/system/user'
export function listUser(query: T.UserPageQuery) {
return http.get<PageRes<T.UserResp[]>>(`${BASE_URL}`, query)
}
export function listAllUser(query: Partial<T.UserPageQuery>) {
return http.get<T.UserResp[]>(`${BASE_URL}/list`, query)
}
/** @desc 查询用户详情 */
export function getUser(id: string) {