feat: 新增岗位管理模块功能

This commit is contained in:
dk
2026-04-02 16:24:21 +08:00
parent 120a5b4dfd
commit 169ccc8632
11 changed files with 11603 additions and 68 deletions

View File

@@ -177,6 +177,18 @@ declare namespace Api {
type PostType = 'management' | 'technical' | 'business';
interface Post {
id: number;
name: string;
code?: string | null;
postType?: PostType | null;
levelRank?: number | null;
sort?: number | null;
status: CommonStatus;
remark?: string | null;
createTime: number;
}
interface PostSimple {
id: number;
name: string;
@@ -188,6 +200,15 @@ declare namespace Api {
type PostSimpleList = PostSimple[];
type PostSearchParams = CommonType.RecordNullable<Pick<Post, 'name' | 'code' | 'postType' | 'status'>> &
PageParams;
type SavePostParams = Pick<Post, 'name' | 'code' | 'postType' | 'levelRank' | 'sort' | 'status'> & {
remark?: string | null;
};
type PostList = PageResult<Post>;
type RoleSimple = Pick<Role, 'id' | 'name' | 'code' | 'status' | 'sort'>;
type RoleSimpleList = RoleSimple[];