添加示例

This commit is contained in:
yuye
2020-05-19 16:38:04 +08:00
parent ecb254d2bf
commit 8def9014e4
13 changed files with 553 additions and 0 deletions
@@ -0,0 +1,40 @@
package com.mars.exp.api;
import com.mars.common.annotation.api.MarsApi;
import com.mars.common.annotation.api.RequestMethod;
import com.mars.common.annotation.enums.ReqMethod;
import com.mars.exp.api.vo.ExpVO;
import java.util.List;
@MarsApi(refBean = "expApiService")
public interface ExpApi {
/**
* get请求示例
* http://127.0.0.1:8080/expGetRequest?name=张三&names=王五&names=赵六
* @param expVO
* @return
*/
List<ExpVO> expGetRequest(ExpVO expVO);
/**
* post请求示例
* http://127.0.0.1:8080/expPostRequest
* 传参用表单,不支持json传参
* @param expVO
* @return
*/
@RequestMethod(ReqMethod.POST)
List<ExpVO> expPostRequest(ExpVO expVO);
/**
* 文件上传示例
* http://127.0.0.1:8080/expUploadRequest
* 传参用formData,不支持json传参
* @param expVO
* @return
*/
@RequestMethod(ReqMethod.POST)
String expUploadRequest(ExpVO expVO);
}