import { Request, Response } from 'express';
const categoryData = { "code": 200, "success": true, "message": "success", "data": [{ "pageNo": null, "pageSize": null, "createBy": "1", "createTime": "2025-06-16 10:22:16", "updateBy": null, "updateTime": null, "remark": null, "id": "5fb622f6-929c-41c2-be0d-508fecbff3d9", "categoryName": "添加", "parentId": "0", "type": "0", "orderBy": "1", "ancestors": "0,5fb622f6-929c-41c2-be0d-508fecbff3d9", "delFlag": "normal", "lastUpdateTime": null, "basePageRequest": null, "children": [{ "pageNo": null, "pageSize": null, "createBy": "1", "createTime": "2025-06-16 10:32:16", "updateBy": "1", "updateTime": "2025-06-16 10:37:30", "remark": null, "id": "0c653095-a553-48a7-9c2f-6fc708769dd6", "categoryName": "二级商品", "parentId": "5fb622f6-929c-41c2-be0d-508fecbff3d9", "type": "0", "orderBy": "3", "ancestors": "0,5fb622f6-929c-41c2-be0d-508fecbff3d9,0c653095-a553-48a7-9c2f-6fc708769dd6", "delFlag": "normal", "lastUpdateTime": null, "basePageRequest": null, "children": [{ "pageNo": null, "pageSize": null, "createBy": "1", "createTime": "2025-06-16 10:32:59", "updateBy": null, "updateTime": null, "remark": null, "id": "ff59e929-864e-4080-a9c5-852cab7ab129", "categoryName": "一级商品", "parentId": "0c653095-a553-48a7-9c2f-6fc708769dd6", "type": "1", "orderBy": "1", "ancestors": "0,5fb622f6-929c-41c2-be0d-508fecbff3d9,0c653095-a553-48a7-9c2f-6fc708769dd6,ff59e929-864e-4080-a9c5-852cab7ab129", "delFlag": "normal", "lastUpdateTime": null, "basePageRequest": null, "children": null }] }, { "pageNo": null, "pageSize": null, "createBy": "1", "createTime": "2025-06-16 10:29:09", "updateBy": null, "updateTime": null, "remark": null, "id": "ffd210c8-026b-4ec5-aa1e-40d70feb905e", "categoryName": "三级商品", "parentId": "5fb622f6-929c-41c2-be0d-508fecbff3d9", "type": "1", "orderBy": "1", "ancestors": "0,5fb622f6-929c-41c2-be0d-508fecbff3d9,ffd210c8-026b-4ec5-aa1e-40d70feb905e", "delFlag": "normal", "lastUpdateTime": null, "basePageRequest": null, "children": null }] }] }
export default {

  'GET /api/system/category': (req: Request, res: Response) => {
    res.json({
      code: 200,
      data: [
        {
          id: '1',
          deptName: '信息技术部',
          categoryName: '软件开发',
          createTime: '2024-01-15',
          exitTime: '2024-06-30',
          exitReason: '项目结束',
        },
        {
          id: '2',
          deptName: '市场部',
          categoryName: '市场推广',
          createTime: '2024-02-20',
          exitTime: '2024-07-15',
          exitReason: '岗位调整岗位调整岗位调整岗位调整岗位调整岗位调整岗位调整岗位调整',
        },
      ],
      total: 2,
      msg: '操作成功'
    });
  },

  'GET /api/system/categoryOption': (req: Request, res: Response) => {
    res.json(categoryData);
  },

};
