All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.mingsoft.msend.entity.TemplateEntity Maven / Gradle / Ivy

There is a newer version: 2.2.5
Show newest version
/**
 * The MIT License (MIT)
 * Copyright (c) 2020 铭软科技(mingsoft.net)
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
package net.mingsoft.msend.entity;

import net.mingsoft.base.entity.BaseEntity;

import cn.hutool.crypto.SecureUtil;

import org.apache.commons.lang3.StringUtils;

 /**
 * 发送消息模板表实体
 * @author 铭飞开发团队
 * @version 
 * 版本号:0.0
* 创建日期:2017-8-24 17:52:29
* 历史修订:
*/ public class TemplateEntity extends BaseEntity { private static final long serialVersionUID = 1503568349408L; /** * 模块编号 */ private Integer modelId; /** * 标题 */ private String templateTitle; /** * */ private String templateMail; /** * */ private String templateSms; /** * 邮件模块代码 */ private String templateCode; /** * 邮件模块代码加密 */ private String templateCodeAes; public String getTemplateCodeAes() { if(StringUtils.isNotBlank(templateCode)){ templateCodeAes = SecureUtil.aes(SecureUtil.md5(this.getId()).substring(16).getBytes()).encryptBase64(templateCode); } return templateCodeAes; } public void setTemplateCodeAes(String templateCodeAes) { this.templateCodeAes = templateCodeAes; } /** * 设置模块编号 */ public void setModelId(Integer modelId) { this.modelId = modelId; } /** * 获取模块编号 */ public Integer getModelId() { return this.modelId; } /** * 设置标题 */ public void setTemplateTitle(String templateTitle) { this.templateTitle = templateTitle; } /** * 获取标题 */ public String getTemplateTitle() { return this.templateTitle; } /** * 设置 */ public void setTemplateMail(String templateMail) { this.templateMail = templateMail; } /** * 获取 */ public String getTemplateMail() { return this.templateMail; } /** * 设置 */ public void setTemplateSms(String templateSms) { this.templateSms = templateSms; } /** * 获取 */ public String getTemplateSms() { return this.templateSms; } /** * 设置邮件模块代码 */ public void setTemplateCode(String templateCode) { this.templateCode = templateCode; } /** * 获取邮件模块代码 */ public String getTemplateCode() { return this.templateCode; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy