大赛赛组添加编辑功能实现
parent
719ccf5f55
commit
9b9030701c
@ -0,0 +1,13 @@
|
||||
package com.tz.platform.common.core.enmus;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum CompetitionType {
|
||||
TEAM(0,"团队赛") ,PERSONAL(1,"个人赛");
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.tz.platform.competitiion.pc.dto;
|
||||
|
||||
import com.tz.platform.common.core.bo.Rotation;
|
||||
import com.tz.platform.common.core.bo.Stage;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CompetitionDTO implements Serializable {
|
||||
private Long userNo;
|
||||
private Long id;
|
||||
private String name;
|
||||
private Integer type;
|
||||
private String sponsor;
|
||||
private String supporter;
|
||||
private Integer teamMinCount;
|
||||
private Integer teamMaxCount;
|
||||
private List<Stage> stageList;
|
||||
private Integer currentStage;
|
||||
private List<Rotation> bannerList;
|
||||
private String thumbnail;
|
||||
private String summary;
|
||||
private String rule;
|
||||
private String prize;
|
||||
private String news;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.tz.platform.competitiion.pc.dto;
|
||||
|
||||
import com.tz.platform.common.core.bo.GroupCat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class GroupDTO implements Serializable {
|
||||
private Long userNo;
|
||||
private Integer id;
|
||||
private Long competitionId;
|
||||
private String name;
|
||||
private Integer limitType;
|
||||
private List<GroupCat> catList;
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.tz.platform.competitiion.pc.dto;
|
||||
|
||||
import com.tz.platform.entity.CompetitionGroup;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ListGroupDTO implements Serializable {
|
||||
private List<CompetitionGroup> list;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.tz.platform.competitiion.pc.vo;
|
||||
|
||||
import com.tz.platform.common.core.bo.GroupCat;
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GroupVO {
|
||||
private Long userNo;
|
||||
private Integer id;
|
||||
private Long competitionId;
|
||||
private String name;
|
||||
private Integer limitType;
|
||||
private List<GroupCat> catList;
|
||||
}
|
@ -1,8 +1,22 @@
|
||||
package com.tz.platform.system.pc;
|
||||
|
||||
import com.tz.platform.common.core.base.Result;
|
||||
import com.tz.platform.system.pc.biz.PCProvinceBiz;
|
||||
import com.tz.platform.system.pc.dto.ProvinceDTO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/pc/system/province")
|
||||
public class ProviceController {
|
||||
|
||||
@Autowired
|
||||
private PCProvinceBiz biz;
|
||||
|
||||
@GetMapping(value = "list")
|
||||
public Result<ProvinceDTO> list(){
|
||||
return biz.list();
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package com.tz.platform.system.pc.dto;
|
||||
|
||||
import com.tz.platform.entity.Province;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
@Data
|
||||
public class ProvinceDTO implements Serializable {
|
||||
List<Province> list;
|
||||
}
|
Loading…
Reference in New Issue