1234567891011121314151617181920 |
- const users = [
- { id: 0, name: 'Umi', nickName: 'U', gender: 'MALE' },
- { id: 1, name: 'Fish', nickName: 'B', gender: 'FEMALE' },
- ];
- export default {
- 'GET /api/v1/queryUserList': (req: any, res: any) => {
- res.json({
- success: true,
- data: { list: users },
- errorCode: 0,
- });
- },
- 'PUT /api/v1/user/': (req: any, res: any) => {
- res.json({
- success: true,
- errorCode: 0,
- });
- },
- };
|