tmp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user