@@ -0,0 +1,21 @@ | |||
package com.tuoheng.admin.controller; | |||
import com.tuoheng.admin.service.report.IReportService; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/16 | |||
*/ | |||
@RestController | |||
@RequestMapping("role") | |||
public class RoleController { | |||
@Autowired | |||
private IReportService reportService; | |||
} |
@@ -17,15 +17,20 @@ import lombok.experimental.Accessors; | |||
@Data | |||
@EqualsAndHashCode(callSuper = true) | |||
@Accessors(chain = true) | |||
@TableName("th_role") | |||
@TableName("op_roles") | |||
public class Role extends BaseEntity { | |||
private static final long serialVersionUID = 1L; | |||
/** | |||
* 租户id | |||
*/ | |||
private Integer tenantId; | |||
/** | |||
* 角色名称 | |||
*/ | |||
private String name; | |||
private String roleName; | |||
/** | |||
* 角色标签 | |||
@@ -40,12 +45,6 @@ public class Role extends BaseEntity { | |||
/** | |||
* 备注 | |||
*/ | |||
private String note; | |||
/** | |||
* 排序 | |||
*/ | |||
private Integer sort; | |||
private String remark; | |||
} |
@@ -0,0 +1,11 @@ | |||
package com.tuoheng.admin.mapper; | |||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
import com.tuoheng.admin.entity.Role; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/16 | |||
*/ | |||
public interface RoleMapper extends BaseMapper<Role> { | |||
} |
@@ -0,0 +1,11 @@ | |||
package com.tuoheng.admin.service.role; | |||
import com.tuoheng.admin.entity.Role; | |||
import com.tuoheng.common.core.common.IBaseService; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/16 | |||
*/ | |||
public interface IRoleService extends IBaseService<Role> { | |||
} |
@@ -0,0 +1,14 @@ | |||
package com.tuoheng.admin.service.role; | |||
import com.tuoheng.admin.entity.Role; | |||
import com.tuoheng.admin.mapper.RoleMapper; | |||
import com.tuoheng.common.core.common.BaseServiceImpl; | |||
import org.springframework.stereotype.Service; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/16 | |||
*/ | |||
@Service | |||
public class RoleServiceImpl extends BaseServiceImpl<RoleMapper, Role> implements IRoleService { | |||
} |
@@ -0,0 +1,6 @@ | |||
<?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.tuoheng.admin.mapper.RoleMapper"> | |||
</mapper> |