TongchengOpenSource / smart-doc

Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.
https://smart-doc-group.github.io/#/
Apache License 2.0
1.42k stars 278 forks source link

Pushing torna results in an empty folder. #684

Closed tubtelly closed 8 months ago

tubtelly commented 11 months ago

Version

Torna version: 1.23.2 Java version: 1.8 MySQL version: 8.0 Browser: Edge Smart-doc version (if used): 2.7.7

Configuration

{
  "isStrict": false,
  "projectName": "myproject",
  "appToken": "xxxxxxxx",
  "openUrl": "http://ip:port/api",
  "replace": true,
  "packageFilters": "com.xxx.*.controller.*",
  "packageExcludeFilters": "com.xxx.*.controller.feign.*",
  "dataDictionaries": [
    {
      "enumClassName": "com.baomidou.mybatisplus.annotation.IEnum",
      "codeField": "value",
      "descField": "desc"
    }
  ],
  "errorCodeDictionaries": [
    {
      "title": "响应码",
      "enumClassName": "com.xxx.common.enums.BizResponseEnum",
      "codeField": "status",
      "descField": "message"
    }
  ]
}

Actual Results

Pushed packageFilters content. Did not push packageExcludeFilters content, and an empty folder was created.

Expected Results

Push packageFilters content. Do not push packageExcludeFilters content, and do not create an empty folder (this is the key point).

chenqi146 commented 11 months ago

Are you saying that an empty folder was created on torna? Is there a screenshot from torna for reference?

tubtelly commented 11 months ago

Configuration

{
  "isStrict": false,
  "projectName": "myproject",
  "appToken": "xxxxxxxx",
  "openUrl": "http://ip:port/api",
  "replace": true,
  "packageFilters": "com.xxx.*.controller.*",
  "packageExcludeFilters": "com.xxx.*.controller.feign.*",
  "dataDictionaries": [
    {
      "enumClassName": "com.baomidou.mybatisplus.annotation.IEnum",
      "codeField": "value",
      "descField": "desc"
    }
  ],
  "errorCodeDictionaries": [
    {
      "title": "响应码",
      "enumClassName": "com.xxx.common.enums.BizResponseEnum",
      "codeField": "status",
      "descField": "message"
    }
  ]
}

微信图片_20231215182717

微信图片_20231215182939