This commit is contained in:
cwchen 2024-02-23 19:02:06 +08:00
parent 64187057e0
commit fa26fa0ffc
7 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.securitycontrol.entity.system.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @authorcwchen
* @date2024-02-23-18:51
* @version1.0
* @description角色-dto
*/
@Data
public class RoleDto {
@ApiModelProperty(value = "角色名称")
private String roleName;
}

View File

@ -0,0 +1,24 @@
package com.securitycontrol.entity.system.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @authorcwchen
* @date2024-02-23-18:51
* @version1.0
* @description角色-vo
*/
@Data
public class RoleVo {
@ApiModelProperty(value = "角色ID")
private Integer roleId;
@ApiModelProperty(value = "角色名称")
private String roleName;
@ApiModelProperty(value = "排序")
private String roleSort;
}

View File

@ -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;
/**
* @authorcwchen
* @date2024-02-23-18:28
* @version1.0
* @description角色管理-web
*/
@RestController
@RequestMapping("/sys/role/")
public class RoleController {
@RT
private IRoleService service;
}

View File

@ -0,0 +1,13 @@
package com.securitycontrol.system.base.mapper;
import org.springframework.stereotype.Repository;
/**
* @authorcwchen
* @date2024-02-23-18:34
* @version1.0
* @description角色管理-数据库访问层
*/
@Repository(value = "IRoleMapper")
public interface IRoleMapper {
}

View File

@ -0,0 +1,10 @@
package com.securitycontrol.system.base.service;
/**
* @authorcwchen
* @date2024-02-23-18:32
* @version1.0
* @description角色管理-业务层
*/
public interface IRoleService {
}

View File

@ -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;
/**
* @authorcwchen
* @date2024-02-23-18:33
* @version1.0
* @description角色管理-业务逻辑层
*/
@Service(value = "IRoleService")
public class RoleServiceImpl implements IRoleService {
@Resource(name = "IRoleMapper")
private IRoleMapper mapper;
}

View File

@ -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>