@RestController
@RequestMapping(value="${hsweb.web.mappings.district:district}")
@Authorize(permission="district",
description="\u884c\u653f\u533a\u5212\u7ba1\u7406")
public class DistrictController
extends Object
implements SimpleGenericEntityController<DistrictEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>
| 构造器和说明 |
|---|
DistrictController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseMessage<List<DistrictEntity>> |
all() |
ResponseMessage<Boolean> |
disable(String id) |
ResponseMessage<Boolean> |
enable(String id) |
ResponseMessage<List<DistrictEntity>> |
getAllByParentId(String parentId) |
ResponseMessage<DistrictEntity> |
getByCode(String code) |
ResponseMessage<List<DistrictEntity>> |
getByParentId(String parentId) |
DistrictService |
getService() |
void |
setDistrictService(DistrictService districtService) |
ResponseMessage<Void> |
updateBatch(List<DistrictEntity> batch) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelToEntityassertNotNull, count, getByPrimaryKey, getByPrimaryKey, list, listNoPagingsaveOrUpdate, updateByPrimaryKeyadddeleteByPrimaryKey@Autowired public void setDistrictService(DistrictService districtService)
public DistrictService getService()
getService 在接口中 CreateController<DistrictEntity,String,DistrictEntity>getService 在接口中 DeleteController<DistrictEntity,String>getService 在接口中 QueryController<DistrictEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleCrudController<DistrictEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleGenericEntityController<DistrictEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 UpdateController<DistrictEntity,String,DistrictEntity>@GetMapping(value="/code/{code}")
@Authorize(action="query")
public ResponseMessage<DistrictEntity> getByCode(@PathVariable
String code)
@GetMapping(value="/children/{parentId}")
@Authorize(action="query")
public ResponseMessage<List<DistrictEntity>> getByParentId(@PathVariable
String parentId)
@GetMapping(value="/children/{parentId}/all")
@Authorize(action="query")
public ResponseMessage<List<DistrictEntity>> getAllByParentId(@PathVariable
String parentId)
@GetMapping(value="/all") @Authorize(action="query") public ResponseMessage<List<DistrictEntity>> all()
@PatchMapping(value="/batch") @Authorize(action="update") public ResponseMessage<Void> updateBatch(@RequestBody List<DistrictEntity> batch)
@PutMapping(value="/{id}/disable")
@Authorize(action="disable")
public ResponseMessage<Boolean> disable(@PathVariable
String id)
@PutMapping(value="/{id}/enable")
@Authorize(action="enable")
public ResponseMessage<Boolean> enable(@PathVariable
String id)
Copyright © 2016–2020. All rights reserved.