Skip to content

Commit 61cfc0d

Browse files
committed
修正框架使用文档的用法
1 parent a52c860 commit 61cfc0d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

HelpDoc-en.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public class RequestServer implements IRequestServer {
168168

169169
@NonNull
170170
@Override
171-
public IHttpPostBodyStrategy getBodyType() {
171+
public IHttpBodyStrategy getBodyType() {
172172
// Parameters submitted in Json format (default is form)
173173
return RequestBodyType.JSON;
174174
}
@@ -318,7 +318,7 @@ public final class UpdateImageApi implements IRequestApi, IRequestBodyType {
318318

319319
@NonNull
320320
@Override
321-
public IHttpPostBodyStrategy getBodyType() {
321+
public IHttpBodyStrategy getBodyType() {
322322
// File upload needs to use the form method
323323
return RequestBodyType.FORM;
324324
}
@@ -822,7 +822,7 @@ public class XxxServer implements IRequestServer {
822822

823823
@NonNull
824824
@Override
825-
public IHttpPostBodyStrategy getBodyType() {
825+
public IHttpBodyStrategy getBodyType() {
826826
return RequestBodyType.FORM;
827827
}
828828
}
@@ -841,7 +841,7 @@ public class XxxServer implements IRequestServer {
841841

842842
@NonNull
843843
@Override
844-
public IHttpPostBodyStrategy getBodyType() {
844+
public IHttpBodyStrategy getBodyType() {
845845
return RequestBodyType.JSON;
846846
}
847847
}
@@ -860,7 +860,7 @@ public final class XxxApi implements IRequestApi, IRequestBodyType {
860860

861861
@NonNull
862862
@Override
863-
public IHttpPostBodyStrategy getBodyType() {
863+
public IHttpBodyStrategy getBodyType() {
864864
return RequestBodyType.JSON;
865865
}
866866
}

HelpDoc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public class RequestServer implements IRequestServer {
168168

169169
@NonNull
170170
@Override
171-
public IHttpPostBodyStrategy getBodyType() {
171+
public IHttpBodyStrategy getBodyType() {
172172
// 参数以 Json 格式提交(默认是表单)
173173
return RequestBodyType.JSON;
174174
}
@@ -318,7 +318,7 @@ public final class UpdateImageApi implements IRequestApi, IRequestBodyType {
318318

319319
@NonNull
320320
@Override
321-
public IHttpPostBodyStrategy getBodyType() {
321+
public IHttpBodyStrategy getBodyType() {
322322
// 上传文件需要使用表单的形式提交
323323
return RequestBodyType.FORM;
324324
}
@@ -822,7 +822,7 @@ public class XxxServer implements IRequestServer {
822822

823823
@NonNull
824824
@Override
825-
public IHttpPostBodyStrategy getBodyType() {
825+
public IHttpBodyStrategy getBodyType() {
826826
return RequestBodyType.FORM;
827827
}
828828
}
@@ -841,7 +841,7 @@ public class XxxServer implements IRequestServer {
841841

842842
@NonNull
843843
@Override
844-
public IHttpPostBodyStrategy getBodyType() {
844+
public IHttpBodyStrategy getBodyType() {
845845
return RequestBodyType.JSON;
846846
}
847847
}
@@ -860,7 +860,7 @@ public final class XxxApi implements IRequestApi, IRequestBodyType {
860860

861861
@NonNull
862862
@Override
863-
public IHttpPostBodyStrategy getBodyType() {
863+
public IHttpBodyStrategy getBodyType() {
864864
return RequestBodyType.JSON;
865865
}
866866
}

0 commit comments

Comments
 (0)