Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘坚-丰林-DEV
chatGLM
Commits
684e20c8
Commit
684e20c8
authored
Apr 16, 2023
by
littleforest
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.baibaomen.com/jian.liu/chatgml
parents
77abf4f9
120e78f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
index.tsx
src/pages/UserManage/index.tsx
+3
-3
api.ts
src/services/chatGLM/api.ts
+6
-6
No files found.
src/pages/UserManage/index.tsx
View file @
684e20c8
...
...
@@ -112,8 +112,8 @@ const UserManage = () => {
showModal
();
const
data
=
{
id
:
record
.
id
,
Name
:
record
.
userN
ame
,
Phone
:
record
.
phoneNumber
,
Name
:
record
.
n
ame
,
UserName
:
record
.
userName
,
Role
:
record
.
roles
,
isActive
:
record
.
isActive
,
};
...
...
@@ -331,7 +331,7 @@ const UserManage = () => {
name=
"accountSetting"
>
<
Item
name=
{
'
Phon
e'
}
name=
{
'
UserNam
e'
}
label=
"用户账号"
rules=
{
[
{
required
:
true
,
message
:
'请输入手机号!'
},
...
...
src/services/chatGLM/api.ts
View file @
684e20c8
...
...
@@ -74,34 +74,34 @@ interface ITalkParams {
export
const
CreatedAccount
=
(
params
:
any
):
Promise
<
string
>
=>
{
return
request
(
'https://glm-mangement-api.baibaomen.com/User/create'
,
{
method
:
'POST'
,
params
,
body
:
JSON
.
stringify
(
params
)
,
});
};
export
const
getRole
=
(
params
?:
any
):
Promise
<
string
>
=>
{
return
request
(
'https://glm-mangement-api.baibaomen.com/User/roles'
,
{
method
:
'POST'
,
params
,
body
:
JSON
.
stringify
(
params
)
,
});
};
export
const
getUserMessage
=
(
params
?:
any
):
Promise
<
string
>
=>
{
return
request
(
'https://glm-mangement-api.baibaomen.com/User/page'
,
{
method
:
'POST'
,
data
:
params
,
body
:
JSON
.
stringify
(
params
)
,
});
};
export
const
postDeleteUser
=
(
params
?:
any
):
Promise
<
string
>
=>
{
return
request
(
'https://glm-mangement-api.baibaomen.com/User/delete'
,
{
method
:
'POST'
,
params
})
body
:
JSON
.
stringify
(
params
),
})
;
};
export
const
postResetUser
=
(
params
?:
any
):
Promise
<
string
>
=>
{
return
request
(
'https://glm-mangement-api.baibaomen.com/User/reset'
,
{
method
:
'POST'
,
data
:
params
,
body
:
JSON
.
stringify
(
params
)
,
});
};
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