This commit is contained in:
parent
64187057e0
commit
fa26fa0ffc
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.securitycontrol.entity.system.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:51
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色-dto
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class RoleDto {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "角色名称")
|
||||||
|
private String roleName;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.securitycontrol.entity.system.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:51
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色-vo
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class RoleVo {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "角色ID")
|
||||||
|
private Integer roleId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "角色名称")
|
||||||
|
private String roleName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "排序")
|
||||||
|
private String roleSort;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.securitycontrol.system.base.controller;
|
||||||
|
|
||||||
|
import com.securitycontrol.system.base.service.IRoleService;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:28
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色管理-web
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/sys/role/")
|
||||||
|
public class RoleController {
|
||||||
|
|
||||||
|
@RT
|
||||||
|
private IRoleService service;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.securitycontrol.system.base.mapper;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:34
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色管理-数据库访问层
|
||||||
|
*/
|
||||||
|
@Repository(value = "IRoleMapper")
|
||||||
|
public interface IRoleMapper {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
package com.securitycontrol.system.base.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:32
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色管理-业务层
|
||||||
|
*/
|
||||||
|
public interface IRoleService {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.securitycontrol.system.base.service.impl;
|
||||||
|
|
||||||
|
import com.securitycontrol.system.base.mapper.IRoleMapper;
|
||||||
|
import com.securitycontrol.system.base.service.IRoleService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-02-23-18:33
|
||||||
|
* @version:1.0
|
||||||
|
* @description:角色管理-业务逻辑层
|
||||||
|
*/
|
||||||
|
@Service(value = "IRoleService")
|
||||||
|
public class RoleServiceImpl implements IRoleService {
|
||||||
|
|
||||||
|
@Resource(name = "IRoleMapper")
|
||||||
|
private IRoleMapper mapper;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.securitycontrol.system.base.mapper.IRoleMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue