diff --git a/src/controller/program.controller.ts b/src/controller/program.controller.ts index 1ef629f..15288d9 100644 --- a/src/controller/program.controller.ts +++ b/src/controller/program.controller.ts @@ -10,14 +10,16 @@ export class ProgramController { ) { } + // 查询项目列表 @Get("/list") getList(@Query() program: ProgramEntity) { return this.programService.getList(program); } - @Get("/list2") - getList2(@Query() program: ProgramEntity) { - return this.programService.getList(program); + // 是否有过聊天 + @Get("isChat") + isChat(@Query() group: ProgramGroupEntity) { + return this.programService.isChat(group); } @Post() @@ -25,11 +27,6 @@ export class ProgramController { return this.programService.add(program); } - @Get("isChat") - isChat(@Query() group: ProgramGroupEntity) { - return this.programService.isChat(group); - } - @Get("/:id") getById(@Param("id") id: number) { return this.programService.getById(id);