package com.dsh.account.feignclient.course.model;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
|
@Data
|
public class CourseOfStoreVo {
|
|
@ApiModelProperty(value = "课包id")
|
private Integer courseId;
|
|
@ApiModelProperty(value = "课包名称")
|
private String courseName;
|
|
@ApiModelProperty(value = "课包开始时间")
|
private String classStartTime;
|
|
@ApiModelProperty(value = "课包结束时间")
|
private String classEndTime;
|
|
@ApiModelProperty(value = "课包 周列表 分号隔开1;2;3;4;5")
|
private String classWeeks;
|
|
@ApiModelProperty(value = "门店id")
|
private Integer storeId;
|
|
@ApiModelProperty(value = "门店名称")
|
private String storeName;
|
|
@ApiModelProperty(value = "经度")
|
private String lat;
|
|
@ApiModelProperty(value = "纬度")
|
private String lon;
|
|
public CourseOfStoreVo(Integer courseId, String courseName, Integer storeId, String storeName,String classWeeks) {
|
this.courseId = courseId;
|
this.courseName = courseName;
|
this.storeId = storeId;
|
this.storeName = storeName;
|
this.classWeeks = classWeeks;
|
}
|
@ApiModelProperty(value = "周列表")
|
private List<Integer> classWeekList;
|
|
public List<Integer> getClassWeekList() {
|
String[] split = this.classWeeks.split(";");
|
List<Integer> integers = new ArrayList<>();
|
for (String s : split) {
|
int num = Integer.parseInt(s);
|
integers.add(num);
|
}
|
return integers;
|
}
|
}
|