com.diboot.devtools.v2.OOO0OO00O00OO00O Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.util.D;
import com.diboot.core.util.S;
import com.diboot.core.util.V;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Getter
@Setter
@Accessors(chain = true)
@TableName("diboot_custom_panel")
@Deprecated()
public class OOO0OO00O00OO00O extends BaseEntity {
private static final long serialVersionUID = 1101110001111100110L;
public static final String DEFAULT_PANEL_PATH = OOO0OO00O00O00OO.l11llll1ll11ll1("c3JjL3ZpZXdzL3BhbmVs");
public static final String ABSTRACT_PANEL = OOO0OO00O00O00OO.l11llll1ll11ll1("QUJTVFJBQ1RfUEFORUw=");
@NotNull(message = "name不能为空")
@Length(max = 255, message = "name长度应小于255")
@TableField()
private String panelName;
@NotNull(message = "code不能为空")
@Length(max = 50, message = "code长度应小于50")
@TableField()
private String panelCode;
@NotNull(message = "type不能为空")
@TableField()
private String projectType;
@NotNull(message = "fileName不能为空")
@TableField()
private String fileName;
@NotNull(message = "dirPath不能为空")
@TableField()
private String dirPath;
@TableField()
private String paramData;
@TableField()
private String eventData;
@TableField()
private String methodsData;
@TableField()
private String configData;
@JsonFormat(pattern = D.FORMAT_DATETIME_Y4MDHM)
@TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NOT_NULL, fill = FieldFill.UPDATE)
private Date updateTime;
@Deprecated()
public String getAliasDirPath() {
if (V.isEmpty(dirPath)) {
return null;
}
return S.replace(dirPath, OOO0OO00O00O00OO.l11llll1ll11ll1("c3JjLw=="), "@/");
}
@Deprecated()
public String getSplitCode() {
if (V.isEmpty(panelCode)) {
return null;
}
String snakeCode = S.toSnakeCase(panelCode);
return S.replace(snakeCode, "_", "-");
}
}