Commit 9e6c56e5 authored by tangf's avatar tangf

添加swagger

parent 0026db43
...@@ -11,6 +11,7 @@ import com.pangding.web.authority.vo.resvo.WebAuthorityResVo; ...@@ -11,6 +11,7 @@ import com.pangding.web.authority.vo.resvo.WebAuthorityResVo;
import com.yanzuoguang.util.helper.CheckerHelper; import com.yanzuoguang.util.helper.CheckerHelper;
import com.yanzuoguang.util.vo.PageSizeData; import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -23,6 +24,7 @@ import java.util.List; ...@@ -23,6 +24,7 @@ import java.util.List;
*/ */
@RestController @RestController
@RequestMapping("/authority") @RequestMapping("/authority")
@Api(value = "权限")
public class AuthorityController { public class AuthorityController {
@Autowired @Autowired
......
...@@ -19,6 +19,11 @@ public class CompanyCtroller { ...@@ -19,6 +19,11 @@ public class CompanyCtroller {
@Autowired @Autowired
private CompanyService companyService; private CompanyService companyService;
/**
* 找到公司余额
* @param req
* @return
*/
@RequestMapping(value = "/findCompanyBalance", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/findCompanyBalance", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult findCompanyBalance(@RequestBody CompanyReqVo req){ public ResponseResult findCompanyBalance(@RequestBody CompanyReqVo req){
CheckerHelper.newInstance().notBlankCheck("id",req.getId()).checkException(); CheckerHelper.newInstance().notBlankCheck("id",req.getId()).checkException();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment