LineController.java 942 Bytes
package com.bsth.controller.basic;

import com.bsth.service.basic.LineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by panzhao on 2017/8/1.
 */
@RestController
@RequestMapping("line")
public class LineController {

    @Autowired
    LineService lineService;

    @RequestMapping("list")
    public Map<String, Object> list(@RequestParam Map<String, Object> map,
                                    @RequestParam(defaultValue = "0") int page,
                                    @RequestParam(defaultValue = "10") int size){

        return lineService.list(map, page, size);
    }

    @RequestMapping("all")
    public Map<String, Object> all(){
        return lineService.all();
    }
}