Commit ae3fc6c3 authored by 曲欣亮's avatar 曲欣亮

优化代码

parent 56e6ff0a
......@@ -28,6 +28,7 @@ import com.egolm.lang.service.TranslateService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@Controller
@RequestMapping("api")
......@@ -339,7 +340,7 @@ public class LanguageController {
@ApiImplicitParam(paramType = "header", name = "appid", dataType = "string", required = false, value = "appid"),
@ApiImplicitParam(paramType = "header", name = "sig", dataType = "string", required = false, value = "sig")
})
public Object translateByJson(@RequestBody ContentArgs content) {
public Object translateByJson(@RequestBody @ApiParam(name="文档对象", value="文档对象", required=true) ContentArgs content) {
return this.translateByArray(content.getsLink(), content.getsDocuments(), content.getsCaption());
}
......
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