net.guerlab.cloud.dingtalk.service.entity.DingTalkApp Maven / Gradle / Ivy
/*
* Copyright 2018-2022 guerlab.net and other contributors.
*
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/lgpl-3.0.html
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.guerlab.cloud.dingtalk.service.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.guerlab.cloud.commons.entity.BaseEntity;
import net.guerlab.cloud.core.dto.DefaultConvert;
import net.guerlab.cloud.dingtalk.core.domain.DingTalkAppDTO;
import net.guerlab.cloud.dingtalk.core.enums.DingTalkAppType;
import java.time.LocalDateTime;
/**
* 钉钉应用
*
* @author guer
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dingtalk_app")
public class DingTalkApp extends BaseEntity implements DefaultConvert {
/**
* 应用key
*/
@TableId
private String appKey;
/**
* 企业ID
*/
private String corpId;
/**
* 应用密钥
*/
private String appSecret;
/**
* 应用类型
*/
private DingTalkAppType appType;
/**
* 应用名称
*/
private String appName;
/**
* 启用标志
*/
private Boolean enabled;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
@TableField(value = "createTime", updateStrategy = FieldStrategy.NEVER)
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
}