2022-05-23 05:05:59 +00:00
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.UserApiDefinition = void 0;
|
|
|
|
exports.UserApiDefinition = {
|
|
|
|
/**
|
|
|
|
* 获取用户
|
|
|
|
*/
|
|
|
|
getAllUsers: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: 'get',
|
2022-05-23 05:05:59 +00:00
|
|
|
server: '/',
|
|
|
|
client: function () { return '/user'; }
|
|
|
|
},
|
2022-06-28 09:11:26 +00:00
|
|
|
/**
|
|
|
|
* 获取验证码
|
|
|
|
*/
|
|
|
|
sendVerifyCode: {
|
|
|
|
method: 'get',
|
|
|
|
server: 'sendVerifyCode',
|
|
|
|
client: function () { return '/verify/sendVerifyCode'; }
|
|
|
|
},
|
2022-05-23 05:05:59 +00:00
|
|
|
/**
|
|
|
|
* 注册
|
|
|
|
*/
|
|
|
|
register: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: 'post',
|
2022-05-23 05:05:59 +00:00
|
|
|
server: 'register',
|
|
|
|
client: function () { return '/user/register'; }
|
|
|
|
},
|
2022-06-28 09:11:26 +00:00
|
|
|
/**
|
|
|
|
* 重置密码
|
|
|
|
*/
|
|
|
|
resetPassword: {
|
|
|
|
method: 'post',
|
|
|
|
server: 'resetPassword',
|
|
|
|
client: function () { return '/user/resetPassword'; }
|
|
|
|
},
|
2022-05-23 05:05:59 +00:00
|
|
|
/**
|
|
|
|
* 登录
|
|
|
|
*/
|
|
|
|
login: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: 'post',
|
2022-05-23 05:05:59 +00:00
|
|
|
server: 'login',
|
|
|
|
client: function () { return '/user/login'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 登出
|
|
|
|
*/
|
|
|
|
logout: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: 'post',
|
2022-05-23 05:05:59 +00:00
|
|
|
server: 'logout',
|
|
|
|
client: function () { return '/user/logout'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 更新
|
|
|
|
*/
|
|
|
|
update: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: 'patch',
|
2022-05-23 05:05:59 +00:00
|
|
|
server: 'update',
|
|
|
|
client: function () { return "/user/update"; }
|
2022-06-28 09:11:26 +00:00
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 锁定用户
|
|
|
|
*/
|
|
|
|
toggleLockUser: {
|
|
|
|
method: 'post',
|
|
|
|
server: 'lock/user',
|
|
|
|
client: function () { return "/user/lock/user"; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 获取系统配置
|
|
|
|
*/
|
|
|
|
getSystemConfig: {
|
|
|
|
method: 'get',
|
|
|
|
server: 'config/system',
|
|
|
|
client: function () { return "/user/config/system"; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 发送测试邮件
|
|
|
|
*/
|
|
|
|
sendTestEmail: {
|
|
|
|
method: 'get',
|
|
|
|
server: 'config/system/sendTestEmail',
|
|
|
|
client: function () { return "/user/config/system/sendTestEmail"; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 发送测试邮件
|
|
|
|
*/
|
|
|
|
updateSystemConfig: {
|
|
|
|
method: 'post',
|
|
|
|
server: 'config/system/updateSystemConfig',
|
|
|
|
client: function () { return "/user/config/system/updateSystemConfig"; }
|
2022-05-23 05:05:59 +00:00
|
|
|
}
|
|
|
|
};
|