feat: 更新用户类型字段为"System"并添加用户来源字段

This commit is contained in:
TsMask
2025-08-14 16:08:57 +08:00
parent c7f4a5f3d1
commit 4ad4060913
6 changed files with 13 additions and 11 deletions

View File

@@ -715,7 +715,8 @@ func (s *SysUserController) ImportData(c *gin.Context) {
// 构建用户实体信息
newSysUser := model.SysUser{
UserType: "sys",
UserType: "System",
UserSource: "#",
Password: initPassword,
DeptID: row["I"],
UserName: row["B"],

View File

@@ -12,7 +12,7 @@ type SysLogOperate struct {
Method string `json:"method"`
// 请求方式
RequestMethod string `json:"requestMethod"`
// 操作人员类别0其它 1后台用户 2手机端用户
// 操作人员类别 来自用户类型
OperatorType string `json:"operatorType"`
// 操作人员
OperName string `json:"operName"`