Commit 15d0c4cb authored by xingyuji's avatar xingyuji

选课相关接口权限小改动,配置文件改动--文件上传限制大小

parent 11efd28a
...@@ -192,7 +192,7 @@ public class BSlController extends PaginationController<BSl> { ...@@ -192,7 +192,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiOperation(value="上传封面", notes="根据ID上传课程封面") @ApiOperation(value="上传封面", notes="根据ID上传课程封面")
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "businessId", required = true, dataType = "varchar"), @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "businessId", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "file", value = "图片文件", required = false, dataType = "MultipartFile")}) @ApiImplicitParam(name = "file", value = "图片文件", required = false, dataType = "MultipartFile")})
@PreAuthorize("hasRole('ROLE_1001')") @PreAuthorize("hasRole('ROLE_1002')")
@PostMapping(value = "/uploadCover") @PostMapping(value = "/uploadCover")
public Result uploadCover(@RequestParam("file") MultipartFile cover, public Result uploadCover(@RequestParam("file") MultipartFile cover,
@RequestParam("id") String id) { @RequestParam("id") String id) {
...@@ -220,7 +220,7 @@ public class BSlController extends PaginationController<BSl> { ...@@ -220,7 +220,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiOperation(value="修改课程简介", notes="修改课程简介") @ApiOperation(value="修改课程简介", notes="修改课程简介")
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "businessId", required = true, dataType = "varchar"), @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "businessId", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "notes", value = "课程简介", required = false, dataType = "varchar")}) @ApiImplicitParam(name = "notes", value = "课程简介", required = false, dataType = "varchar")})
@PreAuthorize("hasRole('ROLE_1001')") @PreAuthorize("hasRole('ROLE_1002')")
@PostMapping(value = "/updateNotes") @PostMapping(value = "/updateNotes")
public Result updateNotes(@RequestParam("notes") String notes, public Result updateNotes(@RequestParam("notes") String notes,
@RequestParam("id") String id) { @RequestParam("id") String id) {
......
...@@ -11,9 +11,9 @@ server: ...@@ -11,9 +11,9 @@ server:
# org.springframework.web: DEBUG # org.springframework.web: DEBUG
druid: druid:
url: jdbc:mysql://127.0.0.1:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true url: jdbc:mysql://127.0.0.1:3306/edu_db2?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: root username: root
password: root password: 123456
initial-size: 1 initial-size: 1
min-idle: 1 min-idle: 1
max-active: 20 max-active: 20
...@@ -40,12 +40,13 @@ pagehelper: ...@@ -40,12 +40,13 @@ pagehelper:
spring: spring:
jackson: jackson:
default-property-inclusion: non_null default-property-inclusion: non_null
#http: http:
# encoding: # encoding:
# force: true # force: true
# charset: UTF-8 # charset: UTF-8
# enabled: true # enabled: true
multipart: multipart:
enabled: true
max-file-size: 100Mb max-file-size: 100Mb
max-request-size: 1000Mb max-request-size: 1000Mb
mvc: mvc:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment