StudentLeaveStudentLeaveRequestHandlerParam.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. package com.template.model.seewo;
  2. import java.util.*;
  3. import com.seewo.open.sdk.OpenApiParam;
  4. /**
  5. * seewo-open API: 学生请假申请与查询api
  6. *
  7. *
  8. * @author auto create
  9. * @since 2.0.1 2024-1-4
  10. */
  11. public class StudentLeaveStudentLeaveRequestHandlerParam extends OpenApiParam {
  12. /**
  13. * 请求体,MimeType为 application/json
  14. */
  15. private JSONRequestBody requestBody;
  16. public JSONRequestBody getRequestBody() {
  17. return this.requestBody;
  18. }
  19. public void setRequestBody(JSONRequestBody requestBody) {
  20. this.requestBody = requestBody;
  21. }
  22. public static StudentLeaveStudentLeaveRequestHandlerParamBuilder builder(){
  23. return new StudentLeaveStudentLeaveRequestHandlerParamBuilder();
  24. }
  25. public static class StudentLeaveStudentLeaveRequestHandlerParamBuilder{
  26. private JSONRequestBody requestBody;
  27. public StudentLeaveStudentLeaveRequestHandlerParamBuilder requestBody(JSONRequestBody requestBody){
  28. this.requestBody = requestBody;
  29. return this;
  30. }
  31. public StudentLeaveStudentLeaveRequestHandlerParam build(){
  32. StudentLeaveStudentLeaveRequestHandlerParam param = new StudentLeaveStudentLeaveRequestHandlerParam();
  33. param.setRequestBody(requestBody);
  34. return param;
  35. }
  36. }
  37. public static class JSONRequestBody {
  38. /**
  39. * 请求参数
  40. */
  41. private StudentLeaveQuery dto;
  42. public StudentLeaveQuery getDto() {
  43. return this.dto;
  44. }
  45. public void setDto(StudentLeaveQuery dto) {
  46. this.dto = dto;
  47. }
  48. public static JSONRequestBodyBuilder builder(){
  49. return new JSONRequestBodyBuilder();
  50. }
  51. public static class JSONRequestBodyBuilder{
  52. private StudentLeaveQuery dto;
  53. public JSONRequestBodyBuilder dto(StudentLeaveQuery dto){
  54. this.dto = dto;
  55. return this;
  56. }
  57. public JSONRequestBody build(){
  58. JSONRequestBody param = new JSONRequestBody();
  59. param.setDto(dto);
  60. return param;
  61. }
  62. }
  63. }
  64. public static class StudentLeaveQuery {
  65. /**
  66. * 学校UID
  67. */
  68. private String schoolUid;
  69. /**
  70. * 学生ID
  71. */
  72. private String userId;
  73. /**
  74. * 开始日期
  75. */
  76. private String startDate;
  77. /**
  78. * 结束日期
  79. */
  80. private String endDate;
  81. /**
  82. * 开始时间
  83. */
  84. private String startTime;
  85. /**
  86. * 结束时间
  87. */
  88. private String endTime;
  89. /**
  90. * 请假类型:0事假,1病假
  91. */
  92. private Integer type;
  93. /**
  94. * 请假原因
  95. */
  96. private String reason;
  97. /**
  98. * 附件列表:url字符串列表
  99. */
  100. private List<String> attachments;
  101. /**
  102. * 申请请假applyForLeave;获取学校请假记录列表getSchoolPeriodLeaveRecords
  103. */
  104. private String method;
  105. public String getSchoolUid() {
  106. return this.schoolUid;
  107. }
  108. public void setSchoolUid(String schoolUid) {
  109. this.schoolUid = schoolUid;
  110. }
  111. public String getUserId() {
  112. return this.userId;
  113. }
  114. public void setUserId(String userId) {
  115. this.userId = userId;
  116. }
  117. public String getStartDate() {
  118. return this.startDate;
  119. }
  120. public void setStartDate(String startDate) {
  121. this.startDate = startDate;
  122. }
  123. public String getEndDate() {
  124. return this.endDate;
  125. }
  126. public void setEndDate(String endDate) {
  127. this.endDate = endDate;
  128. }
  129. public String getStartTime() {
  130. return this.startTime;
  131. }
  132. public void setStartTime(String startTime) {
  133. this.startTime = startTime;
  134. }
  135. public String getEndTime() {
  136. return this.endTime;
  137. }
  138. public void setEndTime(String endTime) {
  139. this.endTime = endTime;
  140. }
  141. public Integer getType() {
  142. return this.type;
  143. }
  144. public void setType(Integer type) {
  145. this.type = type;
  146. }
  147. public String getReason() {
  148. return this.reason;
  149. }
  150. public void setReason(String reason) {
  151. this.reason = reason;
  152. }
  153. public List<String> getAttachments() {
  154. return this.attachments;
  155. }
  156. public void setAttachments(List<String> attachments) {
  157. this.attachments = attachments;
  158. }
  159. public String getMethod() {
  160. return this.method;
  161. }
  162. public void setMethod(String method) {
  163. this.method = method;
  164. }
  165. public static StudentLeaveQueryBuilder builder(){
  166. return new StudentLeaveQueryBuilder();
  167. }
  168. public static class StudentLeaveQueryBuilder{
  169. private String schoolUid;
  170. private String userId;
  171. private String startDate;
  172. private String endDate;
  173. private String startTime;
  174. private String endTime;
  175. private Integer type;
  176. private String reason;
  177. private List<String> attachments;
  178. private String method;
  179. public StudentLeaveQueryBuilder schoolUid(String schoolUid){
  180. this.schoolUid = schoolUid;
  181. return this;
  182. }
  183. public StudentLeaveQueryBuilder userId(String userId){
  184. this.userId = userId;
  185. return this;
  186. }
  187. public StudentLeaveQueryBuilder startDate(String startDate){
  188. this.startDate = startDate;
  189. return this;
  190. }
  191. public StudentLeaveQueryBuilder endDate(String endDate){
  192. this.endDate = endDate;
  193. return this;
  194. }
  195. public StudentLeaveQueryBuilder startTime(String startTime){
  196. this.startTime = startTime;
  197. return this;
  198. }
  199. public StudentLeaveQueryBuilder endTime(String endTime){
  200. this.endTime = endTime;
  201. return this;
  202. }
  203. public StudentLeaveQueryBuilder type(Integer type){
  204. this.type = type;
  205. return this;
  206. }
  207. public StudentLeaveQueryBuilder reason(String reason){
  208. this.reason = reason;
  209. return this;
  210. }
  211. public StudentLeaveQueryBuilder attachments(List<String> attachments){
  212. this.attachments = attachments;
  213. return this;
  214. }
  215. public StudentLeaveQueryBuilder method(String method){
  216. this.method = method;
  217. return this;
  218. }
  219. public StudentLeaveQuery build(){
  220. StudentLeaveQuery param = new StudentLeaveQuery();
  221. param.setSchoolUid(schoolUid);
  222. param.setUserId(userId);
  223. param.setStartDate(startDate);
  224. param.setEndDate(endDate);
  225. param.setStartTime(startTime);
  226. param.setEndTime(endTime);
  227. param.setType(type);
  228. param.setReason(reason);
  229. param.setAttachments(attachments);
  230. param.setMethod(method);
  231. return param;
  232. }
  233. }
  234. }
  235. }