🚀 新增角色
This commit is contained in:
parent
91c1c7612e
commit
f0fa48171c
|
@ -86,3 +86,19 @@
|
|||
18:31:24:030 INFO 19156 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8800 (http) with context path ''
|
||||
18:31:24:091 INFO 19156 --- [main] com.atguigu.auth.ServiceAuthApplication : Started ServiceAuthApplication in 1.485 seconds (JVM running for 1.914)
|
||||
18:39:42:950 INFO 19156 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
|
||||
18:39:47:115 INFO 6652 --- [main] com.atguigu.auth.ServiceAuthApplication : Starting ServiceAuthApplication on bunny with PID 6652 (G:\java项目\guigu-oa-parent\service-oa\target\classes started by 13199 in G:\java项目\guigu-oa-parent)
|
||||
18:39:47:117 INFO 6652 --- [main] com.atguigu.auth.ServiceAuthApplication : The following profiles are active: dev
|
||||
18:39:47:718 INFO 6652 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8800 (http)
|
||||
18:39:47:721 INFO 6652 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
|
||||
18:39:47:721 INFO 6652 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.39]
|
||||
18:39:47:756 INFO 6652 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
|
||||
18:39:47:756 INFO 6652 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 616 ms
|
||||
18:39:47:823 INFO 6652 --- [main] com.atguigu.config.MybatisPlusConfig : 注入MybatisPlus配置类...
|
||||
18:39:48:375 INFO 6652 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
|
||||
18:39:48:456 INFO 6652 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8800 (http) with context path ''
|
||||
18:39:48:536 INFO 6652 --- [main] com.atguigu.auth.ServiceAuthApplication : Started ServiceAuthApplication in 1.644 seconds (JVM running for 2.071)
|
||||
18:39:51:553 INFO 6652 --- [http-nio-8800-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
18:39:51:553 INFO 6652 --- [http-nio-8800-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
|
||||
18:39:51:555 INFO 6652 --- [http-nio-8800-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms
|
||||
18:40:02:303 INFO 6652 --- [http-nio-8800-exec-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
|
||||
18:40:02:498 INFO 6652 --- [http-nio-8800-exec-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
|
||||
|
|
|
@ -8,10 +8,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -35,4 +32,13 @@ public class SysRoleController {
|
|||
IPage<SysRole> sysRoleIPage = sysRoleService.pageResult(page, limit, sysRoleQueryVo);
|
||||
return Result.success(sysRoleIPage);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "新增角色")
|
||||
@PostMapping("save")
|
||||
public Result<SysRole> save(@RequestBody SysRole sysRole) {
|
||||
sysRoleService.save(sysRole);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改角色")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue