parent
2fda1e8487
commit
cd10c6d8e9
@ -0,0 +1,39 @@
|
||||
package com.luoo.music.dto.response.cms;
|
||||
|
||||
import com.luoo.music.pojo.Journal;
|
||||
import com.luoo.music.util.Constants;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author locust
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(description = "音乐列表音乐关联期刊跳转")
|
||||
public class JournalJumpRespDto {
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "期刊编号")
|
||||
private String journalNo;
|
||||
|
||||
@ApiModelProperty(value = "期刊标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "标号标题拼接")
|
||||
private String joint;
|
||||
|
||||
public static JournalJumpRespDto convertPojo(Journal journal) {
|
||||
JournalJumpRespDto response = new JournalJumpRespDto();
|
||||
response.setId(journal.getId());
|
||||
response.setJournalNo(journal.getJournalNo());
|
||||
response.setTitle(journal.getTitle());
|
||||
response.setJoint((Constants.JOURNAL_NO_PREF + journal.getJournalNo() + " " + journal.getTitle()));
|
||||
return response;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue