This commit is contained in:
2022-08-22 21:39:06 +08:00
parent 6857a1d5ea
commit 0ee1be5f04
8 changed files with 418 additions and 51 deletions

View File

@@ -0,0 +1,26 @@
package com.yutou.qqbot.Controllers;
import com.alibaba.fastjson2.JSONObject;
import com.yutou.qqbot.utlis.CalendarTools;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class CalendarController {
@ResponseBody
@RequestMapping("/calendar/all.do")
public JSONObject getCalendar(){
JSONObject json = new JSONObject();
JSONObject holiday= CalendarTools.getHoliday();
json.put("data",holiday);
return json;
}
@ResponseBody
@RequestMapping("/calendar/set.do")
public JSONObject setCalendar(String startDate,String interval){
JSONObject json = new JSONObject();
return json;
}
}