|
@@ -9,6 +9,7 @@ import com.sqx.modules.address.query.InsideAddressQuery;
|
|
|
import com.sqx.modules.address.service.InsideAddressService;
|
|
import com.sqx.modules.address.service.InsideAddressService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -31,7 +32,7 @@ public class AdminInsideAddressController {
|
|
|
private final InsideAddressService insideAddressService;
|
|
private final InsideAddressService insideAddressService;
|
|
|
|
|
|
|
|
@GetMapping("pages")
|
|
@GetMapping("pages")
|
|
|
- @ApiModelProperty(name = "分页查询内部地址列表")
|
|
|
|
|
|
|
+ @ApiOperation("分页查询内部地址列表")
|
|
|
public Result pages(@Valid InsideAddressQuery query) {
|
|
public Result pages(@Valid InsideAddressQuery query) {
|
|
|
PageUtils pageUtils = insideAddressService.pages(query);
|
|
PageUtils pageUtils = insideAddressService.pages(query);
|
|
|
return Result.success().put("data", pageUtils);
|
|
return Result.success().put("data", pageUtils);
|
|
@@ -44,6 +45,7 @@ public class AdminInsideAddressController {
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@PostMapping("update")
|
|
@PostMapping("update")
|
|
|
@ApiModelProperty(name = "更新内部地址")
|
|
@ApiModelProperty(name = "更新内部地址")
|
|
|
public Result update(@Valid InsideAddressDTO insideAddressDTO) {
|
|
public Result update(@Valid InsideAddressDTO insideAddressDTO) {
|