|
@@ -6,8 +6,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
-import org.jeecg.config.NoSwaggerExpand;
|
|
|
|
import org.jeecg.modules.app.dto.GetPlaceListDTO;
|
|
import org.jeecg.modules.app.dto.GetPlaceListDTO;
|
|
|
|
+import org.jeecg.modules.app.dto.SearchDTO;
|
|
import org.jeecg.modules.app.service.IAppHomeService;
|
|
import org.jeecg.modules.app.service.IAppHomeService;
|
|
import org.jeecg.modules.app.service.IUserService;
|
|
import org.jeecg.modules.app.service.IUserService;
|
|
import org.jeecg.modules.app.vo.HomeVO;
|
|
import org.jeecg.modules.app.vo.HomeVO;
|
|
@@ -68,7 +68,20 @@ public class AppHomeController {
|
|
**/
|
|
**/
|
|
@PostMapping("/getPlaceList")
|
|
@PostMapping("/getPlaceList")
|
|
@Operation(summary = "场地列表查询 词典CODE:venue_type")
|
|
@Operation(summary = "场地列表查询 词典CODE:venue_type")
|
|
- public Result<Page<PlaceVO>> getPlaceList(@NoSwaggerExpand @RequestBody @Schema(description = "查询参数") GetPlaceListDTO getPlaceListDTO){
|
|
|
|
|
|
+ public Result<Page<PlaceVO>> getPlaceList(@RequestBody(required = true) GetPlaceListDTO getPlaceListDTO){
|
|
return Result.ok(appHomeService.getPlaceList(getPlaceListDTO));
|
|
return Result.ok(appHomeService.getPlaceList(getPlaceListDTO));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @Author SheepHy
|
|
|
|
+ * @Description 全局搜索
|
|
|
|
+ * @Date 10:37 2025/7/4
|
|
|
|
+ * @Param
|
|
|
|
+ * @return
|
|
|
|
+ **/
|
|
|
|
+ @PostMapping("/search")
|
|
|
|
+ @Operation(summary = "全局搜索 词典CODE:search_type")
|
|
|
|
+ public Result<Object> search(@RequestBody SearchDTO searchDTO){
|
|
|
|
+ return Result.ok(appHomeService.search(searchDTO));
|
|
|
|
+ }
|
|
}
|
|
}
|