add access role manager

木子李·De 3 years ago
parent a990603d67
commit 517000b647

@ -0,0 +1,34 @@
package com.anjiplus.template.gaea.business.modules.accessrole.service;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anjiplus.template.gaea.business.modules.accessrole.controller.dto.AccessRoleDto;
import com.anjiplus.template.gaea.business.modules.accessrole.dao.entity.AccessRole;
import com.anjiplus.template.gaea.business.modules.accessrole.controller.param.AccessRoleParam;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import java.util.Map;
/**
* @desc AccessRole
* @author ·De <lide1202@hotmail.com>
* @date 2019-02-17 08:50:14.136
**/
public interface AccessRoleService extends GaeaBaseService<AccessRoleParam, AccessRole> {
/**
* @param roleCode
* @param operator
* @return
*/
Map getAuthorityTree(String roleCode, String operator);
/**
* @param accessRoleDto
* @return
*/
Boolean saveAuthorityTree(AccessRoleDto accessRoleDto);
}

@ -0,0 +1,40 @@
package com.anjiplus.template.gaea.business.modules.accessuser.dao.entity;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @description -- entity
* @author ·De <lide1202@hotmail.com>
* @date 2019-02-17 08:50:11.902
**/
@TableName(value="access_user_role")
@Data
public class AccessUserRole extends GaeaBaseEntity {
/**  登录名 */
private String loginName;
/** 角色编码 */
private String roleCode;
@TableField(exist = false)
private String createBy;
@TableField(exist = false)
private Date createTime;
@TableField(exist = false)
private String updateBy;
@TableField(exist = false)
private Date updateTime;
@TableField(exist = false)
private Integer version;
}
Loading…
Cancel
Save