Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea中使用插件上传文档至yapi提示Yapi X: The current class must declare category #30

Closed
TwistedRiCen opened this issue May 5, 2022 · 1 comment

Comments

@TwistedRiCen
Copy link

插件版本:0.9.2

错误提示信息:Yapi X: The current class must declare category

源代码如下:

@RestController
@RequestMapping("/v1/auth")
@ShenyuSpringMvcClient(path = "/v1/auth/**")
public class SynergyAuthController {

    private final SynergyAuthService authService;

    @Autowired
    public SynergyAuthController(SynergyAuthService authService) {
        this.authService = authService;
    }

    /**
     * 切换租户
     *
     * @param param 选择的租户
     * @return 状态
     */
    @PostMapping("/group/switchover")
    public Result<AuthGroupSwitchoverVO> groupSwitchover(@RequestBody @Valid AuthGroupSwitchoverParam param) {
        return Result.success(authService.groupSwitchover(param));
    }

    /**
     * 扫码验证
     *
     * @param param 验证状态
     * @return 状态
     */
    @PostMapping("/valid/make")
    public Result<AuthValidMakeVO> validMake(@RequestBody @Valid AuthValidMakeParam param) {
        return Result.success(authService.validMake(param));
    }

}
@TwistedRiCen
Copy link
Author

感谢,问题已定义,自身注释书写不规范

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant