package com.github.origin.web.manage.controller;

import com.github.origin.common.CommonModel;
import com.github.origin.entity.SysUserDO;
import com.github.origin.web.manage.service.SysUserClient;
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 Zhu on 2017/5/3.
 */
@RestController
public class SysUserController {

	@Autowired
	SysUserClient sysUserClient;

	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public CommonModel login(SysUserDO sysUserDO){
		System.out.println("请求成功");
		return sysUserClient.findSysUser(sysUserDO);
	}


}

@@ -190,16 +190,108 @@
 Client;%0A
+import io.swagger.annotations.ApiImplicitParam;%0Aimport io.swagger.annotations.ApiOperation;%0A
 import o
@@ -666,16 +666,145 @@
 lient;%0A%0A
+%09@ApiOperation(value = %22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%E7%99%BB%E5%BD%95%22, notes = %22%E7%AE%A1%E7%90%86%E5%91%98%E4%BD%BF%E7%94%A8%E8%B4%A6%E6%88%B7%E8%B7%9F%E5%AF%86%E7%A0%81%E7%99%BB%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%22)%0A%09@ApiImplicitParam(name = %22sysUserDO%22, value = %22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%E5%AE%9E%E4%BD%93sysUserDO%22)%0A
 %09@Reques

添加swagger2 API注释