package cn.common.interaction.req.log;

import cn.common.common.interaction.base.page.BasePageReq;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Singer create by singer email:singer-coder@qq.com
 * @projectName health-platform-api
 * @Description: 系统日志请求Req
 * @date 2020-01-10
 */
@Data
public class PlatformApiLogReq extends BasePageReq implements Serializable {

    private static final long serialVersionUID = -669500717860457212L;

    /**
     * 操作用户
     */
    private String userName;

    /**
     * 操作
     */
    private String operation;


    /**
     * 开始时间
     */
    @JSONField(format="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDateTime beginTime;

    /**
     * 结束时间
     */
    @JSONField(format="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDateTime endTime;

}
