Commit 75d9aae1 by 崔彦峰

add:提交接口设计。

1 parent 0c048dfe
...@@ -14,14 +14,18 @@ import com.rop.annotation.ServiceMethodBean; ...@@ -14,14 +14,18 @@ import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO) @ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("有效引荐") @Api("有效引荐")
@RestController
public class EffectiveReferralReviewController { public class EffectiveReferralReviewController {
@ApiOperation("门店有效引荐数列表") @ApiOperation("门店有效引荐数列表")
@ServiceMethod(method = "dj.staff.api.effective.referral.store.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.effective.referral.store.page", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.effective.referral.store.page/1.0.0")
public RopResponse<RpcPagination<EffectiveReferralStoreListResponse>> effectiveReferralStorePage(EffectiveReferralStoreListRequest request) { public RopResponse<RpcPagination<EffectiveReferralStoreListResponse>> effectiveReferralStorePage(EffectiveReferralStoreListRequest request) {
RpcResponse<RpcPagination<EffectiveReferralStoreListResponse>> page = null; RpcResponse<RpcPagination<EffectiveReferralStoreListResponse>> page = null;
return RopResponse.success(null); return RopResponse.success(null);
...@@ -29,12 +33,14 @@ public class EffectiveReferralReviewController { ...@@ -29,12 +33,14 @@ public class EffectiveReferralReviewController {
@ApiOperation("门店有效引荐数详情") @ApiOperation("门店有效引荐数详情")
@ServiceMethod(method = "dj.staff.api.effective.referral.store.detail", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.effective.referral.store.detail", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.effective.referral.store.detail/1.0.0")
public RopResponse<StoreEffectiveReferralDetailResponse> effectiveReferralStoreDetail(StoreEffectiveReferralDetailRequest request) { public RopResponse<StoreEffectiveReferralDetailResponse> effectiveReferralStoreDetail(StoreEffectiveReferralDetailRequest request) {
return RopResponse.success(new StoreEffectiveReferralDetailResponse()); return RopResponse.success(new StoreEffectiveReferralDetailResponse());
} }
@ApiOperation("门店有效引荐数提交") @ApiOperation("门店有效引荐数提交")
@ServiceMethod(method = "dj.staff.api.effective.referral.store.submit", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.effective.referral.store.submit", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.effective.referral.store.submit/1.0.0")
public RopResponse<Boolean> effectiveReferralStoreSubmit(StoreEffectiveReferralSubmitRequest request) { public RopResponse<Boolean> effectiveReferralStoreSubmit(StoreEffectiveReferralSubmitRequest request) {
return RopResponse.success( true); return RopResponse.success( true);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!