fix: 🐛 统一主键为 string 类型

This commit is contained in:
Ray.Hao
2025-04-02 19:01:00 +08:00
parent 57e6033b80
commit ab3584fcf4
21 changed files with 67 additions and 67 deletions

View File

@@ -31,7 +31,7 @@ const DeptAPI = {
* @param id 部门ID
* @returns 部门表单数据
*/
getFormData(id: number) {
getFormData(id: string) {
return request<any, DeptForm>({
url: `${DEPT_BASE_URL}/${id}/form`,
method: "get",
@@ -98,13 +98,13 @@ export interface DeptVO {
/** 创建时间 */
createTime?: Date;
/** 部门ID */
id?: number;
id?: string;
/** 部门名称 */
name?: string;
/** 部门编号 */
code?: string;
/** 父部门ID */
parentId?: number;
parentid?: string;
/** 排序 */
sort?: number;
/** 状态(1:启用0:禁用) */