package com.seer.teach.mp.admin.controller.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 代理商活动操作日志查询请求对象
 *
 * @author
 * @since 2025-12-30
 */
@Data
@Schema(name = "代理商活动操作日志查询请求对象")
public class AgentActivityLogQueryReq {

    @Min(value = 1, message = "页码必须大于0")
    @Schema(description = "页码")
    private Integer pageNum = 1;

    @Min(value = 1, message = "每页数量必须大于0")
    @Schema(description = "每页数量")
    private Integer pageSize = 10;

    @Schema(description = "活动ID")
    private Integer activityId;

    @Schema(description = "操作人ID")
    private Integer operatorId;

    @Schema(description = "操作类型")
    private String operationType;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}