2022-05-23 13:05:59 +08:00
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.UserApiDefinition = void 0;
|
|
|
|
exports.UserApiDefinition = {
|
|
|
|
/**
|
|
|
|
* 获取用户
|
|
|
|
*/
|
|
|
|
getAllUsers: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'get',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: '/',
|
|
|
|
client: function () { return '/user'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 注册
|
|
|
|
*/
|
|
|
|
register: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'post',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'register',
|
|
|
|
client: function () { return '/user/register'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 登录
|
|
|
|
*/
|
|
|
|
login: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'post',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'login',
|
|
|
|
client: function () { return '/user/login'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 登出
|
|
|
|
*/
|
|
|
|
logout: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'post',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'logout',
|
|
|
|
client: function () { return '/user/logout'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 更新
|
|
|
|
*/
|
|
|
|
update: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'patch',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'update',
|
|
|
|
client: function () { return "/user/update"; }
|
|
|
|
}
|
|
|
|
};
|