34 lines
1.0 KiB
Java
34 lines
1.0 KiB
Java
![]() |
package com.ruoyi.web.app;
|
||
|
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
import com.ruoyi.bst.area.domain.AreaQuery;
|
||
|
import com.ruoyi.bst.area.domain.enums.AreaStatus;
|
||
|
import com.ruoyi.bst.area.service.AreaService;
|
||
|
import com.ruoyi.common.core.controller.BaseController;
|
||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||
|
|
||
|
import io.swagger.annotations.ApiOperation;
|
||
|
|
||
|
|
||
|
@RestController
|
||
|
@RequestMapping("/app/area")
|
||
|
public class AppAreaController extends BaseController {
|
||
|
|
||
|
@Autowired
|
||
|
private AreaService areaService;
|
||
|
|
||
|
@ApiOperation("获取运营区详情")
|
||
|
@GetMapping("/detail")
|
||
|
public AjaxResult getAreaDetail(Long id) {
|
||
|
AreaQuery query = new AreaQuery();
|
||
|
query.setId(id);
|
||
|
query.setStatus(AreaStatus.ENABLED.getCode());
|
||
|
return success(areaService.selectOne(query));
|
||
|
}
|
||
|
|
||
|
}
|