11 changed files with 232 additions and 177 deletions
			
			
		@ -0,0 +1,22 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 保存居民端用户对议题的建议或意见  返回议题id, 建议id | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/11/18 13:14 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class SaveIssueSuggestionResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 8199657776260756910L; | 
				
			|||
    private String issueId; | 
				
			|||
    /** | 
				
			|||
     * issue_suggestion表主键 | 
				
			|||
     */ | 
				
			|||
    private String suggestionId; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,34 @@ | 
				
			|||
package com.epmet.dto.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
import org.hibernate.validator.constraints.Length; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民端-议题发表建议 入参DTO | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/11/18 12:35 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class PublishSuggestionFormDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 2545427013095892610L; | 
				
			|||
 | 
				
			|||
    public interface AddUserInternalGroup { | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public interface AddUserShowGroup extends CustomerClientShowGroup { | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @NotBlank(message = "议题id不能为空", groups = {AddUserInternalGroup.class}) | 
				
			|||
    private String issueId; | 
				
			|||
 | 
				
			|||
    @NotBlank(message = "是否匿名不能为空", groups = {AddUserInternalGroup.class}) | 
				
			|||
    private Boolean publicFlag; | 
				
			|||
 | 
				
			|||
    @Length(max = 500, message = "内容不能超过500字", groups = {AddUserShowGroup.class}) | 
				
			|||
    private String suggestion; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,26 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民端-议题发表建议 返参DTO | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/11/18 13:08 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class PublishSuggestionResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -2752255960631605369L; | 
				
			|||
    private String issueId; | 
				
			|||
    /** | 
				
			|||
     * issue_suggestion表主键 | 
				
			|||
     */ | 
				
			|||
    private String suggestionId; | 
				
			|||
 | 
				
			|||
    public PublishSuggestionResultDTO(String issueId, String suggestionId) { | 
				
			|||
        this.issueId = issueId; | 
				
			|||
        this.suggestionId = suggestionId; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue