Przeglądaj źródła

用户角色

tags/v1.0.0^2
chengwang 1 rok temu
rodzic
commit
c988e87aa9
6 zmienionych plików z 71 dodań i 9 usunięć
  1. +21
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/RoleController.java
  2. +8
    -9
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Role.java
  3. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/RoleMapper.java
  4. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/IRoleService.java
  5. +14
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/RoleServiceImpl.java
  6. +6
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/RoleMapper.xml

+ 21
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/RoleController.java Wyświetl plik

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


}

+ 8
- 9
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Role.java Wyświetl plik

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

}

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/RoleMapper.java Wyświetl plik

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

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/IRoleService.java Wyświetl plik

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

+ 14
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/RoleServiceImpl.java Wyświetl plik

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

+ 6
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/RoleMapper.xml Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz