Commit e4ffebf8 by guojuxing

测试多个DTO传值

parent d2703d7e
package com.gic.store.dto.open;
import java.io.Serializable;
public class TestDTO implements Serializable{
private static final long serialVersionUID = 572423506566154620L;
private String guojxTest;
public String getGuojxTest() {
return guojxTest;
}
public void setGuojxTest(String guojxTest) {
this.guojxTest = guojxTest;
}
}
......@@ -2,6 +2,7 @@ package com.gic.store.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.store.dto.open.ClerkDTO;
import com.gic.store.dto.open.TestDTO;
/**
* 门店、导购对外API接口
......@@ -50,7 +51,7 @@ public interface StoreOpenApiService {
ServiceResponse<Void> addClerk(Integer enterpriseId, ClerkDTO clerkInfo);
ServiceResponse<Void> editClerk(Integer enterpriseId, ClerkDTO clerkInfo);
ServiceResponse<Void> editClerk(Integer enterpriseId, ClerkDTO clerkInfo, TestDTO test);
/**
* 分页查询导购列表
......
......@@ -6,6 +6,7 @@ import com.gic.api.base.commons.Page;
import com.gic.store.dto.ClerkSearchDTO;
import com.gic.store.dto.ClerkStoreListDTO;
import com.gic.store.dto.StoreSearchDTO;
import com.gic.store.dto.open.TestDTO;
import com.gic.store.service.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
......@@ -161,8 +162,8 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
}
@Override
@GatewayParams(query = {"enterpriseId"}, body = {"clerkInfo"})
public ServiceResponse<Void> editClerk(Integer enterpriseId, ClerkDTO clerkInfo) {
@GatewayParams(query = {"enterpriseId"}, body = {"clerkInfo", "test"})
public ServiceResponse<Void> editClerk(Integer enterpriseId, ClerkDTO clerkInfo, TestDTO test) {
//参数校验
ServiceResponse<EnterpriseDTO> enterpriseResult = enterpriseApiService.getEnterpriseById(enterpriseId);
if (!enterpriseResult.isSuccess()) {
......
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