ZnddYuAnConroller.java
691 Bytes
package com.bsth.controller.zndd;
import com.bsth.controller.BaseController;
import com.bsth.entity.zndd.ZnddYuAn;
import com.bsth.service.zndd.ZnddYuAnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@RestController
@RequestMapping("zndya")
public class ZnddYuAnConroller extends BaseController<ZnddYuAn, Integer> {
@Autowired
ZnddYuAnService znddYuAnService;
//添加类型
@RequestMapping(value = "/addMap", method = RequestMethod.POST)
public Map<String, Object> addMap(@RequestBody Map<String, Object> params){
return znddYuAnService.addMap(params);
}
}