|
@@ -12,6 +12,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -31,6 +32,7 @@ public class ShippingTemplateController extends BaseApiController {
|
|
|
private IShippingTemplateService shippingTemplateService;
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
+ @PreAuthorize("@ss.hasPermi('setting:template:add')")
|
|
|
@ApiOperation("新增运费模板")
|
|
|
public AjaxResult create(@RequestBody ShippingTemplateParam shippingTemplateParam) {
|
|
|
// 新增运费模板
|
|
@@ -40,6 +42,7 @@ public class ShippingTemplateController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/update")
|
|
|
+ @PreAuthorize("@ss.hasPermi('setting:template:edit')")
|
|
|
@ApiOperation("更新运费模板")
|
|
|
public AjaxResult update(@RequestBody ShippingTemplateParam shippingTemplateParam){
|
|
|
// 修改运费模板
|
|
@@ -49,6 +52,7 @@ public class ShippingTemplateController extends BaseApiController {
|
|
|
|
|
|
|
|
|
@PostMapping("/detail/{id}")
|
|
|
+ @PreAuthorize("@ss.hasPermi('setting:template:query')")
|
|
|
@ApiOperation("运费模板详情")
|
|
|
@ApiResponses(
|
|
|
@ApiResponse(code = 200, message = "返回运费模板详情",response = ShippingTemplateVO.class)
|
|
@@ -59,6 +63,7 @@ public class ShippingTemplateController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("list")
|
|
|
+ @PreAuthorize("@ss.hasPermi('setting:template:list')")
|
|
|
@ApiOperation("运费模板列表")
|
|
|
@ApiResponses(
|
|
|
@ApiResponse(code = 200, message = "返回运费模板列表",response = ShippingTemplate.class)
|
|
@@ -72,6 +77,7 @@ public class ShippingTemplateController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/delete/{id}")
|
|
|
+ @PreAuthorize("@ss.hasPermi('setting:template:remove')")
|
|
|
@ApiOperation("删除运费模板")
|
|
|
public AjaxResult delete(@PathVariable("id") Long id){
|
|
|
// 删除运费模板
|