package com.fos.demo.mybatis.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fos.demo.mybatis.entity.DemoUserEntity;
import com.fos.demo.mybatis.service.DemoUserService;

@Controller
@RequestMapping(value="/api/demo/mybatis/user")
public class DemoApiUserController {
    
    @Autowired
    DemoUserService service;
    
    @ResponseBody
    @RequestMapping(value="/get")
    public DemoUserEntity getUser(){
        
        return service.getUser();
    }
}
