think/packages/domains/lib/api/user.js

94 lines
2.0 KiB
TypeScript
Raw Normal View History

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
}
};