package com.shequ.controller.api;
import com.alibaba.fastjson.JSON;
import com.shequ.pojo.Message;
import com.shequ.service.MessageService;
import com.shequ.service.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Controller
public class MessageApi {
@Autowired
MessageService messageService;
@Autowired
RepairService repairService;
/*
微信小程序端提供json接口的。显示社区公告数据
*/
@ResponseBody
@RequestMapping(value = "/getAllMessage",produces="application/json;charset=UTF-8")
public String findAllMessage(){
List<Message> messages = messageService.findAllMessage();
String result = JSON.toJSONString(messages);
return result;
}
}
最近下载更多
天天吃面 LV27
10月21日
DFwang LV5
3月14日
新哥新奇士橙 LV5
1月26日
zolscy LV24
2024年11月27日
唐僧洗头爱飘柔 LV22
2024年9月13日
lo8lukoukoum LV4
2024年4月9日
ningningnn LV3
2024年2月24日
晴曛 LV6
2023年12月29日
阿狸哦 LV2
2023年12月2日
lzpsuifeng LV3
2023年10月13日

最近浏览