package com.softwarebr.nunu.json.admin.ser;

import com.alibaba.fastjson.annotation.JSONField;
import com.brframework.commoncms.annatotion.column.DateTimeBetweenColumn;
import com.brframework.commoncms.annatotion.column.HideColumn;
import com.brframework.commoncms.annatotion.column.SelectColumn;
import com.brframework.commondb.annotation.param.ParamQuery;
import com.brframework.commondb.annotation.param.QueryExpression;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @date 2020-02-24 13:22:47
 * @author lilin
 */

@Data
@ApiModel
public class PlatformQueryParam {

	@ApiModelProperty(value = "账号", example = "")
	private String account;

	@ParamQuery
	@ApiModelProperty(value = "发布者", hidden = true, example = "")
	private Long publisher;

	@ParamQuery
	@ApiModelProperty(value = "平台名称", example = "")
	private String name;

	@ParamQuery(expression = QueryExpression.betweenDate, betweenKey = "createDate")
	@DateTimeBetweenColumn
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "时间", example = "2018-03-12 21:32:33")
	private String createDate;

	@ParamQuery
	@ApiModelProperty(value = "状态(0下架 1上架) ", example = "")
	@SelectColumn(options = {"0,下架","1,上架"})
	private Integer status;

	@ParamQuery
	@ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", example = "")
	@SelectColumn(options = {"1,待审核", "2,审核通过", "3,审核不通过"})
	private Integer verify;

}