提交 4674a9ee 编写于 作者: ibizdev's avatar ibizdev

zhouweidong@lab.ibiz5.com 发布系统代码

上级 520663af
package cn.ibizlab.api.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[MsgBodyDTO]
*/
@Data
public class MsgBodyDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [TEMPLATEID]
*
*/
@JSONField(name = "template_id")
@JsonProperty("template_id")
private String templateId;
/**
* 属性 [MSGTYPE]
*
*/
@JSONField(name = "msg_type")
@JsonProperty("msg_type")
private Integer msgType;
/**
* 属性 [TOUSERS]
*
*/
@JSONField(name = "to_users")
@JsonProperty("to_users")
private String toUsers;
/**
* 属性 [TEMPLPARAMS]
*
*/
@JSONField(name = "template_params")
@JsonProperty("template_params")
private String templateParams;
/**
* 属性 [ISSEND]
*
*/
@JSONField(name = "is_send")
@JsonProperty("is_send")
private Integer isSend;
/**
* 属性 [ISERROR]
*
*/
@JSONField(name = "is_error")
@JsonProperty("is_error")
private Integer isError;
/**
* 属性 [SUBJECT]
*
*/
@JSONField(name = "subject")
@JsonProperty("subject")
private String subject;
/**
* 属性 [CONTENT]
*
*/
@JSONField(name = "content")
@JsonProperty("content")
private String content;
/**
* 属性 [MSGLINK]
*
*/
@JSONField(name = "msg_link")
@JsonProperty("msg_link")
private String msgLink;
/**
* 属性 [USERDATA]
*
*/
@JSONField(name = "user_data")
@JsonProperty("user_data")
private String userData;
/**
* 属性 [MSGID]
*
*/
@JSONField(name = "msg_id")
@JsonProperty("msg_id")
private String msgId;
/**
* 属性 [MSGNAME]
*
*/
@JSONField(name = "msg_name")
@JsonProperty("msg_name")
private String msgName;
/**
* 属性 [ERRORINFO]
*
*/
@JSONField(name = "error_info")
@JsonProperty("error_info")
private String errorInfo;
/**
* 设置 [TEMPLATEID]
*/
public void setTemplateId(String templateId){
this.templateId = templateId ;
this.modify("templateid",templateId);
}
/**
* 设置 [MSGTYPE]
*/
public void setMsgType(Integer msgType){
this.msgType = msgType ;
this.modify("msgtype",msgType);
}
/**
* 设置 [TOUSERS]
*/
public void setToUsers(String toUsers){
this.toUsers = toUsers ;
this.modify("tousers",toUsers);
}
/**
* 设置 [TEMPLPARAMS]
*/
public void setTemplateParams(String templateParams){
this.templateParams = templateParams ;
this.modify("templparams",templateParams);
}
/**
* 设置 [ISSEND]
*/
public void setIsSend(Integer isSend){
this.isSend = isSend ;
this.modify("issend",isSend);
}
/**
* 设置 [ISERROR]
*/
public void setIsError(Integer isError){
this.isError = isError ;
this.modify("iserror",isError);
}
/**
* 设置 [SUBJECT]
*/
public void setSubject(String subject){
this.subject = subject ;
this.modify("subject",subject);
}
/**
* 设置 [CONTENT]
*/
public void setContent(String content){
this.content = content ;
this.modify("content",content);
}
/**
* 设置 [MSGLINK]
*/
public void setMsgLink(String msgLink){
this.msgLink = msgLink ;
this.modify("msglink",msgLink);
}
/**
* 设置 [USERDATA]
*/
public void setUserData(String userData){
this.userData = userData ;
this.modify("userdata",userData);
}
/**
* 设置 [MSGNAME]
*/
public void setMsgName(String msgName){
this.msgName = msgName ;
this.modify("msgname",msgName);
}
/**
* 设置 [ERRORINFO]
*/
public void setErrorInfo(String errorInfo){
this.errorInfo = errorInfo ;
this.modify("errorinfo",errorInfo);
}
}
package cn.ibizlab.api.mapping;
import org.mapstruct.*;
import cn.ibizlab.core.notify.domain.MsgBody;
import cn.ibizlab.api.dto.MsgBodyDTO;
import cn.ibizlab.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},implementationName="apiMsgBodyMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface MsgBodyMapping extends MappingBase<MsgBodyDTO, MsgBody> {
}
package cn.ibizlab.api.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.api.dto.*;
import cn.ibizlab.api.mapping.*;
import cn.ibizlab.core.notify.domain.MsgBody;
import cn.ibizlab.core.notify.service.IMsgBodyService;
import cn.ibizlab.core.notify.filter.MsgBodySearchContext;
import cn.ibizlab.util.annotation.VersionCheck;
@Slf4j
@Api(tags = {"消息" })
@RestController("api-msgbody")
@RequestMapping("")
public class MsgBodyResource {
@Autowired
public IMsgBodyService msgbodyService;
@Autowired
@Lazy
public MsgBodyMapping msgbodyMapping;
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册