功能管理
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
package com.cczsa.xinghe.codegen.entity;
|
||||
|
||||
import com.cczsa.xinghe.codegen.entity.enums.FunTypeEnum;
|
||||
import com.cczsa.xinghe.codegen.entity.enums.RequestTypeEnum;
|
||||
import com.cczsa.xinghe.codegen.handler.PostgreSQLJsonTypeHandler;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 操作 实体类。
|
||||
*
|
||||
* @author My
|
||||
* @since 0.0.1
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table("cg_fun_operation")
|
||||
public class FunOperationEntity extends BaseEntity implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@Id(keyType = KeyType.None)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 模块ID
|
||||
*/
|
||||
private Long moduleId;
|
||||
|
||||
/**
|
||||
* 功能ID
|
||||
*/
|
||||
private Long itemId;
|
||||
|
||||
/**
|
||||
* 直接放行
|
||||
*/
|
||||
private Boolean isGreenLight;
|
||||
|
||||
/**
|
||||
* 操作名称
|
||||
*/
|
||||
private String funName;
|
||||
|
||||
/**
|
||||
* 操作编码
|
||||
*/
|
||||
private String operationCode;
|
||||
|
||||
/**
|
||||
* 操作类型>>查>>改>>删>>增
|
||||
*/
|
||||
private FunTypeEnum funType;
|
||||
|
||||
/**
|
||||
* 请求类型
|
||||
*/
|
||||
private RequestTypeEnum requestType;
|
||||
|
||||
/**
|
||||
* 可配置数据类型json[]
|
||||
*/
|
||||
@Column(typeHandler = PostgreSQLJsonTypeHandler.class)
|
||||
private List<Integer> usableConfig;
|
||||
|
||||
/**
|
||||
* 可配置字段
|
||||
*/
|
||||
@Column(typeHandler = PostgreSQLJsonTypeHandler.class)
|
||||
private List<String> fieldCofnig;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sortOrder;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
private String describe;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user