package com.qqchen.deploy.backend.deploy.query;

import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 团队成员查询条件
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队成员查询条件")
public class TeamMemberQuery extends BaseQuery {

    @QueryField(field = "teamId")
    @Schema(description = "团队ID")
    private Long teamId;

    @QueryField(field = "userId")
    @Schema(description = "用户ID")
    private Long userId;

    @QueryField(field = "userName", type = QueryType.LIKE)
    @Schema(description = "用户名（模糊查询）")
    private String userName;

    @QueryField(field = "roleInTeam", type = QueryType.LIKE)
    @Schema(description = "团队角色（模糊查询）")
    private String roleInTeam;
}

