123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- // @ts-ignore
- /* eslint-disable */
- declare namespace API {
- type CurrentUser = {
- staff: {
- staffId: string
- categoryId: string
- departmentId: string
- departmentName: string
- username: string
- category: string
- avatar: string
- qq: string
- qualifications: string
- isAdmin: number
- roles: string[]
- }
- menus: MenuListItem[]
- }
- type LoginResult = {
- code: number
- msg: number
- data?: {
- token: string
- }
- }
- type PageParams = {
- current?: number
- pageSize?: number
- }
- type BasicFetchResult<T extends any> = {
- list: T[]
- total: number
- }
- type MenuListItem = {
- id: string
- parend_id: string
- name: string
- sort: number
- }
- type Roles = string[]
- type MenuRoleItem = {
- backstageMenuId: string
- id: string
- name: string
- }
- type CreateRoleParams = {
- name: string
- backstageMenuId: string
- }
- type LoginParams = {
- username?: string
- password?: string
- autoLogin?: boolean
- type?: string
- }
- type ErrorResponse = {
- /** 业务约定的错误码 */
- errorCode: string
- /** 业务上的错误信息 */
- errorMessage?: string
- /** 业务上的请求是否成功 */
- success?: boolean
- }
- type NoticeIconList = {
- data?: NoticeIconItem[]
- /** 列表的内容总数 */
- total?: number
- success?: boolean
- }
- type NoticeIconItemType = 'notification' | 'message' | 'event'
- type NoticeIconItem = {
- id?: string
- extra?: string
- key?: string
- read?: boolean
- avatar?: string
- title?: string
- status?: string
- datetime?: string
- description?: string
- type?: NoticeIconItemType
- }
- type RoleStaffListItem = {
- staffId: string
- categoryId: string
- departmentId: string
- positionId: string
- username: string
- category: string
- jobNumber: string
- qq: string
- phone: string
- departmentName: string
- position: string
- hiredate: string
- }
- type GetStaffListParams = {
- search?: string
- departmentId?: string
- } & PageParams
- type StaffItem = {
- id: string
- categoryId: string
- departmentId: string
- positionId: string
- username: string
- category: string
- avatar: string
- qq: string
- qualifications: string
- departmentName: string
- gender: string
- phone: string
- avtelephoneatar: string
- email: string
- birthday: string
- position: string
- jobNumber: string
- hiredate: string
- remittanceName: string
- bankName: string
- bankNumber: string
- coupletNumber: string
- salaryCard: string
- salaryBank: string
- baseWage: string
- postWage: string
- achievementBonus: string
- marriage: string
- nativePlace: string
- emergencyContacts: string
- living: string
- IDcards: string
- IDcardsImgA: string
- IDcardsImgB: string
- certificate: string
- diploma: string
- professionalTitle: string
- nation: string
- graduateInstitutions: string
- major: string
- education: string
- graduationTime: string
- registeredResidence: string
- householdRegistrationType: string
- IDcardsValidity: string
- }
- type AddRoleStaffParams = {
- id: string
- staffId: string
- }
- type UpdateRolePermissionParams = {
- id: string
- permission: string
- }
- type GetRolePermissionResultModel = {
- id: string
- backstageMenuId: string
- name: string
- permission: string | null
- dataPermission: string | null
- }
- type AttendanceItem = {
- id: string
- applicantStaffId: string
- applicantStaffName: string
- staff: { id: string; staff: string }[]
- }
- type DeleteAttendance = {
- id: string
- staffId: string
- }
- type LinkAttendance = {
- id: string
- staffId: string
- }
- type Addattendance = {
- applicantStaffId: string
- }
- }
|