查询忙闲信息
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: young.yu
|
||||
* @Date: 2023-06-16 13:08
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class GetFreeBusyListReq {
|
||||
@ApiModelProperty("查询日期")
|
||||
private String queryDate;
|
||||
@ApiModelProperty("加盟商用户ID")
|
||||
private String partnerId;
|
||||
@ApiModelProperty("面试官ID(如果该字段传了,就查询该面试官的日程忙闲信息,否则查询加盟商对应的面试官的信息)")
|
||||
private String interviewerId;
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.cool.store.vo.interview;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: young.yu
|
||||
* @Date: 2023-06-16 13:21
|
||||
* @Description:
|
||||
*/
|
||||
@ApiModel(description = "日期列表")
|
||||
public class CalendarInfo {
|
||||
@ApiModelProperty("星期几")
|
||||
private Integer dayOfWeek;
|
||||
|
||||
@ApiModelProperty("年份")
|
||||
private String year;
|
||||
|
||||
@ApiModelProperty("月份")
|
||||
private String month;
|
||||
|
||||
@ApiModelProperty("日期")
|
||||
private String day;
|
||||
|
||||
@ApiModelProperty("日期字符串")
|
||||
private String dateStr;
|
||||
|
||||
@ApiModelProperty("飞书日程忙闲清单")
|
||||
private List<FreeBusyInfo> freeBusyList;
|
||||
|
||||
public CalendarInfo(Integer dayOfWeek, String year, String month, String day, String dateStr, List<FreeBusyInfo> freeBusyList) {
|
||||
this.dayOfWeek = dayOfWeek;
|
||||
this.year = year;
|
||||
this.month = month;
|
||||
this.day = day;
|
||||
this.dateStr = dateStr;
|
||||
this.freeBusyList = freeBusyList;
|
||||
}
|
||||
|
||||
public String getDateStr() {
|
||||
return dateStr;
|
||||
}
|
||||
|
||||
public void setDateStr(String dateStr) {
|
||||
this.dateStr = dateStr;
|
||||
}
|
||||
|
||||
public List<FreeBusyInfo> getFreeBusyList() {
|
||||
return freeBusyList;
|
||||
}
|
||||
|
||||
public void setFreeBusyList(List<FreeBusyInfo> freeBusyList) {
|
||||
this.freeBusyList = freeBusyList;
|
||||
}
|
||||
|
||||
public Integer getDayOfWeek() {
|
||||
return dayOfWeek;
|
||||
}
|
||||
|
||||
public void setDayOfWeek(Integer dayOfWeek) {
|
||||
this.dayOfWeek = dayOfWeek;
|
||||
}
|
||||
|
||||
public String getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
public void setMonth(String month) {
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public String getDay() {
|
||||
return day;
|
||||
}
|
||||
|
||||
public void setDay(String day) {
|
||||
this.day = day;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.cool.store.vo.interview;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
* @Author: young.yu
|
||||
* @Date: 2023-06-16 13:25
|
||||
* @Description:
|
||||
*/
|
||||
@ApiModel(description = "日程忙闲信息")
|
||||
public class FreeBusyInfo {
|
||||
@ApiModelProperty("开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty("是否空闲")
|
||||
private boolean isFree;
|
||||
|
||||
public FreeBusyInfo(String startTime, String endTime, boolean isFree) {
|
||||
this.startTime = startTime;
|
||||
this.endTime = endTime;
|
||||
this.isFree = isFree;
|
||||
}
|
||||
|
||||
public FreeBusyInfo(String startTime, String endTime) {
|
||||
this.startTime = startTime;
|
||||
this.endTime = endTime;
|
||||
this.isFree = isFree;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public boolean isFree() {
|
||||
return isFree;
|
||||
}
|
||||
|
||||
public void setFree(boolean free) {
|
||||
isFree = free;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.vo.interview;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: young.yu
|
||||
* @Date: 2023-06-16 13:19
|
||||
* @Description:
|
||||
*/
|
||||
@ApiModel(description = "日程忙闲信息")
|
||||
@Data
|
||||
public class GetFreeBusyListVO {
|
||||
|
||||
@ApiModelProperty("日期列表(默认七天,只有请求参数中查询日期不传时才会返回,否则不返回)")
|
||||
private List<CalendarInfo> calendarList;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user