|  |  |  | 
|---|
|  |  |  | import com.doumee.service.business.BaseParamService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
|---|
|  |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.validation.annotation.Validated; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation("新建") | 
|---|
|  |  |  | @PostMapping("/create") | 
|---|
|  |  |  | @RequiresPermissions("business:baseparam:create") | 
|---|
|  |  |  | public ApiResponse create(@RequestBody BaseParam baseParam) { | 
|---|
|  |  |  | public ApiResponse create(@RequestBody @Validated BaseParam baseParam) { | 
|---|
|  |  |  | return ApiResponse.success(baseParamService.create(baseParam)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|