是否聊天接口修改
This commit is contained in:
@@ -10,14 +10,16 @@ export class ProgramController {
|
|||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询项目列表
|
||||||
@Get("/list")
|
@Get("/list")
|
||||||
getList(@Query() program: ProgramEntity) {
|
getList(@Query() program: ProgramEntity) {
|
||||||
return this.programService.getList(program);
|
return this.programService.getList(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("/list2")
|
// 是否有过聊天
|
||||||
getList2(@Query() program: ProgramEntity) {
|
@Get("isChat")
|
||||||
return this.programService.getList(program);
|
isChat(@Query() group: ProgramGroupEntity) {
|
||||||
|
return this.programService.isChat(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
@@ -25,11 +27,6 @@ export class ProgramController {
|
|||||||
return this.programService.add(program);
|
return this.programService.add(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("isChat")
|
|
||||||
isChat(@Query() group: ProgramGroupEntity) {
|
|
||||||
return this.programService.isChat(group);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Get("/:id")
|
@Get("/:id")
|
||||||
getById(@Param("id") id: number) {
|
getById(@Param("id") id: number) {
|
||||||
return this.programService.getById(id);
|
return this.programService.getById(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user