Line2SystemController.java 862 Bytes
package com.bsth.controller;

import com.bsth.entity.Line2System;
import com.bsth.service.Line2SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by panzhao on 2017/3/14.
 */
@RestController
@RequestMapping("/line2System")
public class Line2SystemController {

    @Autowired
    Line2SystemService line2SystemService;

    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public Line2System update(Line2System line2System){
        return line2SystemService.update(line2System);
    }

    @RequestMapping("/all")
    public Iterable<Line2System> findAll(){
        return line2SystemService.findAll();
    }
}