106 lines
2.0 KiB
Java
106 lines
2.0 KiB
Java
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(表主键ID)
|
|
*/
|
|
private Long moduleId;
|
|
|
|
/**
|
|
* 功能ID(表主键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;
|
|
|
|
/**
|
|
* 操作ID
|
|
*/
|
|
private Integer operationId;
|
|
|
|
}
|