Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agent-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
agent-platform
Commits
8f8a512d
Commit
8f8a512d
authored
Apr 28, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户同步接口
parent
6d862576
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
317 deletions
+91
-317
agent-manager/db/add.sql
agent-manager/db/add.sql
+24
-1
agent-manager/src/main/resources/sqlmap/base/system/user.xml
agent-manager/src/main/resources/sqlmap/base/system/user.xml
+67
-316
No files found.
agent-manager/db/add.sql
View file @
8f8a512d
...
@@ -254,4 +254,27 @@ CREATE TABLE `mortals_agent_user`
...
@@ -254,4 +254,27 @@ CREATE TABLE `mortals_agent_user`
UNIQUE
KEY
`idx_loginName`
(
`loginName`
)
USING
BTREE
UNIQUE
KEY
`idx_loginName`
(
`loginName`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
ujis
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'用户信息'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
ujis
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'用户信息'
;
DROP
TABLE
IF
EXISTS
`mortals_agent_user`
;
CREATE
TABLE
`mortals_agent_user`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'用户ID,主键,自增长'
,
`loginName`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'登录名'
,
`loginPwd`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'登录密码,使用md5双次加密'
,
`loginLimitAddress`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'登录限制地址,多个IP地址用逗号分隔,可以使用IP段匹配,如:172.17.*非空:则只能该值内的IP可以登录'
,
`realName`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'用户名'
,
`mobile`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'用户手机号'
,
`phone`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'用户联系电话'
,
`email`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'用户邮箱'
,
`qq`
varchar
(
20
)
DEFAULT
NULL
COMMENT
'QQ号码'
,
`open_id`
varchar
(
128
)
CHARACTER
SET
utf8
DEFAULT
NULL
COMMENT
'openId,绑定企业'
,
`company_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'绑定公司企业id'
,
`userType`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'用户类型(0.系统用户,1.普通用户,2.公司企业用户)'
,
`siteIds`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'所属站点id,多个逗号分隔'
,
`areaCodes`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'所属区域code,多个逗号分隔'
,
`status`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'用户状态(0.停用,1.正常,2.冻结,3.销户,4.离职)'
,
`createTime`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'创建用户'
,
`createUserName`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'创建用户名称'
,
`lastLoginTime`
datetime
DEFAULT
NULL
COMMENT
'最后一次登录时间'
,
`lastLoginAddress`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'最后一次登录地址'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'用户信息业务'
;
\ No newline at end of file
agent-manager/src/main/resources/sqlmap/base/system/user.xml
View file @
8f8a512d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment