正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -2,18 +2,18 @@ package domain | @@ -2,18 +2,18 @@ package domain | ||
| 2 | 2 | ||
| 3 | //员工基本信息描述 | 3 | //员工基本信息描述 |
| 4 | type StaffDesc struct { | 4 | type StaffDesc struct { |
| 5 | - UserId int `json:"userId"` //用户id | ||
| 6 | - Account string `json:"account"` //用户的账号 | ||
| 7 | - UserName string `json:"userName"` //用户的名称 | 5 | + UserId int `json:"userId,string"` //用户id |
| 6 | + Account string `json:"account"` //用户的账号 | ||
| 7 | + UserName string `json:"userName"` //用户的名称 | ||
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | //员工的部门 | 10 | //员工的部门 |
| 11 | type StaffDepartment struct { | 11 | type StaffDepartment struct { |
| 12 | - DepartmentId int `json:"departmentId"` //部门id | ||
| 13 | - DepartmentName string `json:"departmentName"` //部门名称 | 12 | + DepartmentId int `json:"departmentId,string"` //部门id |
| 13 | + DepartmentName string `json:"departmentName"` //部门名称 | ||
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | type StaffPosition struct { | 16 | type StaffPosition struct { |
| 17 | - PositionId int `json:"positionId"` | 17 | + PositionId int `json:"positionId,string"` |
| 18 | PositionName string `json:"positionName"` | 18 | PositionName string `json:"positionName"` |
| 19 | } | 19 | } |
-
请 注册 或 登录 后发表评论