This commit is contained in:
2026-08-16 15:11:38 +08:00
parent f7f6db8695
commit a85477be80
40 changed files with 761 additions and 144 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ type DepartmentRequest struct {
ParentID uint `json:"parentId"`
Sort int `json:"sort"`
LeaderID uint `json:"leaderId"`
Status bool `json:"status"`
Status *bool `json:"status"`
}
type DepartmentListRequest struct {
@@ -38,7 +38,7 @@ type DepartmentResponse struct {
Sort int `json:"sort"`
LeaderID uint `json:"leaderId"`
Leader any `json:"leader"`
Status bool `json:"status"`
Status *bool `json:"status"`
Children []*DepartmentResponse `json:"children"`
NamePath string `json:"namePath"`
}
@@ -48,7 +48,7 @@ type PositionRequest struct {
Name string `json:"name"`
Code string `json:"code"`
Sort int `json:"sort"`
Status bool `json:"status"`
Status *bool `json:"status"`
Remark string `json:"remark"`
}
@@ -79,6 +79,6 @@ type PositionResponse struct {
Name string `json:"name"`
Code string `json:"code"`
Sort int `json:"sort"`
Status bool `json:"status"`
Status *bool `json:"status"`
Remark string `json:"remark"`
}