//package com.fast.dev.demo.core.controller;
//
//import com.fast.dev.demo.core.model.User;
//import com.fast.dev.demo.core.model.UserInfo;
//import io.swagger.annotations.*;
//import org.springframework.beans.BeanUtils;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class TestController {
//
//    @ApiOperation(value = "获取用户详情", notes = "设置用户名,返回用户详情信息", consumes = "application/x-www-form-urlencoded")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "userName", value = "用户名", required = true, dataType = "String", paramType = "form"),
//    })
//    @RequestMapping(value = "user", method = {RequestMethod.POST, RequestMethod.GET})
//    @ApiResponses({@ApiResponse(code = 200, message = "操作成功"),
//            @ApiResponse(code = 500, message = "服务器内部异常"),
//            @ApiResponse(code = 403, message = "权限不足")})
//    public UserInfo user(User user) {
//        UserInfo userInfo = new UserInfo();
//        BeanUtils.copyProperties(user, userInfo);
//        userInfo.setQueryTime(System.currentTimeMillis());
//        userInfo.setAge(18);
//        return userInfo;
//    }
//
//
//}
