add waitlist

pull/882/head
chanhengseang 2025-05-26 12:03:00 -07:00
parent 81c8c2cf4e
commit 87a8cf91ba
6 changed files with 312 additions and 0 deletions

View File

@ -0,0 +1,46 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class EventOrganizerQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query
@ApiModelProperty(value = "Organizer User ID")
private Long userId;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}

View File

@ -0,0 +1,50 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class MatchGroupQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query
@ApiModelProperty(value = "Group Name")
private String name;
@Query
@ApiModelProperty(value = "Group Number")
private Integer groupNumber;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}

View File

@ -0,0 +1,66 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class MatchQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query
@ApiModelProperty(value = "Match Group ID")
private Long matchGroupId;
@Query
@ApiModelProperty(value = "Team A ID")
private Long teamAId;
@Query
@ApiModelProperty(value = "Team B ID")
private Long teamBId;
@Query
@ApiModelProperty(value = "Court Number")
private Integer courtNumber;
@Query
@ApiModelProperty(value = "Match Status")
private String status;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Match Time Range")
private List<Timestamp> matchTime;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}

View File

@ -0,0 +1,54 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class RatingHistoryQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Player ID")
private Long playerId;
@Query
@ApiModelProperty(value = "Sport ID")
private Long sportId;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Rating Range")
private List<Integer> rating;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}

View File

@ -0,0 +1,50 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class TeamPlayerQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Team ID")
private Long teamId;
@Query
@ApiModelProperty(value = "Player ID")
private Long playerId;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}

View File

@ -0,0 +1,46 @@
/*
* Copyright 2019-2025 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.srr.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;
import java.sql.Timestamp;
import java.util.List;
/**
* @author Chanheng
* @date 2025-05-26
*/
@Data
public class TeamQueryCriteria {
@Query
private Long id;
@Query
@ApiModelProperty(value = "Event ID")
private Long eventId;
@Query
@ApiModelProperty(value = "Team Name")
private String name;
@Query(type = Query.Type.BETWEEN)
@ApiModelProperty(value = "Create time range")
private List<Timestamp> createTime;
}