From 87a8cf91ba5e354cbd9f1079f4c121a60cb7cfbc Mon Sep 17 00:00:00 2001 From: chanhengseang Date: Mon, 26 May 2025 12:03:00 -0700 Subject: [PATCH] add waitlist --- .../srr/dto/EventOrganizerQueryCriteria.java | 46 +++++++++++++ .../com/srr/dto/MatchGroupQueryCriteria.java | 50 ++++++++++++++ .../java/com/srr/dto/MatchQueryCriteria.java | 66 +++++++++++++++++++ .../srr/dto/RatingHistoryQueryCriteria.java | 54 +++++++++++++++ .../com/srr/dto/TeamPlayerQueryCriteria.java | 50 ++++++++++++++ .../java/com/srr/dto/TeamQueryCriteria.java | 46 +++++++++++++ 6 files changed, 312 insertions(+) create mode 100644 sport/src/main/java/com/srr/dto/EventOrganizerQueryCriteria.java create mode 100644 sport/src/main/java/com/srr/dto/MatchGroupQueryCriteria.java create mode 100644 sport/src/main/java/com/srr/dto/MatchQueryCriteria.java create mode 100644 sport/src/main/java/com/srr/dto/RatingHistoryQueryCriteria.java create mode 100644 sport/src/main/java/com/srr/dto/TeamPlayerQueryCriteria.java create mode 100644 sport/src/main/java/com/srr/dto/TeamQueryCriteria.java diff --git a/sport/src/main/java/com/srr/dto/EventOrganizerQueryCriteria.java b/sport/src/main/java/com/srr/dto/EventOrganizerQueryCriteria.java new file mode 100644 index 00000000..c127d8ee --- /dev/null +++ b/sport/src/main/java/com/srr/dto/EventOrganizerQueryCriteria.java @@ -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 createTime; +} diff --git a/sport/src/main/java/com/srr/dto/MatchGroupQueryCriteria.java b/sport/src/main/java/com/srr/dto/MatchGroupQueryCriteria.java new file mode 100644 index 00000000..38194c21 --- /dev/null +++ b/sport/src/main/java/com/srr/dto/MatchGroupQueryCriteria.java @@ -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 createTime; +} diff --git a/sport/src/main/java/com/srr/dto/MatchQueryCriteria.java b/sport/src/main/java/com/srr/dto/MatchQueryCriteria.java new file mode 100644 index 00000000..9a302a83 --- /dev/null +++ b/sport/src/main/java/com/srr/dto/MatchQueryCriteria.java @@ -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 matchTime; + + @Query(type = Query.Type.BETWEEN) + @ApiModelProperty(value = "Create time range") + private List createTime; +} diff --git a/sport/src/main/java/com/srr/dto/RatingHistoryQueryCriteria.java b/sport/src/main/java/com/srr/dto/RatingHistoryQueryCriteria.java new file mode 100644 index 00000000..336eacd5 --- /dev/null +++ b/sport/src/main/java/com/srr/dto/RatingHistoryQueryCriteria.java @@ -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 rating; + + @Query(type = Query.Type.BETWEEN) + @ApiModelProperty(value = "Create time range") + private List createTime; +} diff --git a/sport/src/main/java/com/srr/dto/TeamPlayerQueryCriteria.java b/sport/src/main/java/com/srr/dto/TeamPlayerQueryCriteria.java new file mode 100644 index 00000000..24746f66 --- /dev/null +++ b/sport/src/main/java/com/srr/dto/TeamPlayerQueryCriteria.java @@ -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 createTime; +} diff --git a/sport/src/main/java/com/srr/dto/TeamQueryCriteria.java b/sport/src/main/java/com/srr/dto/TeamQueryCriteria.java new file mode 100644 index 00000000..e85907d1 --- /dev/null +++ b/sport/src/main/java/com/srr/dto/TeamQueryCriteria.java @@ -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 createTime; +}