Skip to content

Commit

Permalink
数据鉴权实体定义
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMalik committed Sep 6, 2021
1 parent dd8ee73 commit 031d7d6
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 1 deletion.
19 changes: 19 additions & 0 deletions auth/data-authentication-server/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>auth</artifactId>
<groupId>com.springboot.cloud</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>data-authentication-server</artifactId>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

</project>
2 changes: 1 addition & 1 deletion auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.springboot.cloud</groupId>
<artifactId>auth</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
Expand All @@ -21,6 +20,7 @@
<module>authentication-server</module>
<module>authentication-client</module>
<module>authorization-server</module>
<module>data-authentication-server</module>
</modules>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.springboot.cloud.sysadmin.organization.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.cloud.sysadmin.organization.entity.po.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package com.springboot.cloud.sysadmin.organization.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.sysadmin.organization.entity.po.Permission;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
* 数据权限DTO
*
* @author wayne
* @date 2021/09/06
*/
public class PermissionForm extends BaseForm<Permission> {
/**
* 资源类型:hive,hdfs
*/
@NotBlank(message = "资源类型不能为空")
@ApiModelProperty(value = "资源类型")
private String resType;

/**
* 资源地区
*/
@NotBlank(message = "资源地区不能为空")
@ApiModelProperty(value = "资源地区")
private String area;

/**
* 资源完整路径
*/
@NotBlank(message = "资源路径不能为空")
@ApiModelProperty(value = "资源路径")
private String resFullPath;

/**
* 资源全名
*/
@NotBlank(message = "资源名称不能为空")
@ApiModelProperty(value = "资源名称")
private String resFullName;

/**
* 资源操作位:读,写,查询
*/
@NotBlank(message = "资源操作位不能为空")
@ApiModelProperty(value = "资源操作位")
private String operationBit;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package com.springboot.cloud.sysadmin.organization.entity.po;

import com.springboot.cloud.common.web.entity.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* 数据权限资源
*
* @author wayne
* @date 2021/09/06
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Permission extends BasePo {

/**
* 资源类型:hive,hdfs
*/
private String resType;

/**
* 资源地区
*/
private String area;

/**
* 资源完整路径
*/
private String resFullPath;

/**
* 资源全名
*/
private String resFullName;

/**
* 资源操作位:读,写,查询
*/
private String operationBit;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.springboot.cloud.sysadmin.organization.service;

public interface IPermissionService {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.springboot.cloud.sysadmin.organization.service.impl;

import com.springboot.cloud.sysadmin.organization.service.IPermissionService;
import org.springframework.stereotype.Service;

@Service
public class PermissionService implements IPermissionService {
}

0 comments on commit 031d7d6

Please sign in to comment.