Fix: Refactor Organization CRUD {id} to {code}
This commit is contained in:
@@ -4,7 +4,7 @@ export interface DivisionPosition extends Base {
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
division_id: number
|
||||
division_id: string
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
@@ -16,7 +16,7 @@ export function genDivisionPosition(): DivisionPosition {
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
division_id: 0,
|
||||
division_id: '',
|
||||
employee_id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface SpecialistPosition extends Base {
|
||||
specialist_id: number
|
||||
specialist_id: string
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
@@ -13,7 +13,7 @@ export interface SpecialistPosition extends Base {
|
||||
export function genSpecialistPosition(): SpecialistPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
specialist_id: 0,
|
||||
specialist_id: '',
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
|
||||
@@ -14,6 +14,6 @@ export function genSpecialist(): Specialist {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
unit_id: 0,
|
||||
unit_id: '',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { Employee } from './employee'
|
||||
import type { Subspecialist } from './subspecialist'
|
||||
|
||||
export interface SubSpecialistPosition extends Base {
|
||||
subspecialist_id: number
|
||||
subspecialist_id: string
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
@@ -16,7 +16,7 @@ export interface SubSpecialistPosition extends Base {
|
||||
export function genSubSpecialistPosition(): SubSpecialistPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
subspecialist_id: 0,
|
||||
subspecialist_id: '',
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface UnitPosition extends Base {
|
||||
unit_id: number
|
||||
unit_id: string
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
@@ -14,7 +14,7 @@ export interface UnitPosition extends Base {
|
||||
export function genUnitPosition(): UnitPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
unit_id: 0,
|
||||
unit_id: '',
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
|
||||
Reference in New Issue
Block a user