All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.guerlab.smart.pay.api.feign.FeignPayLogApi Maven / Gradle / Ivy

/*
 * Copyright 2018-2021 guerlab.net and other contributors.
 *
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.guerlab.smart.pay.api.feign;

import net.guerlab.smart.pay.core.domain.PayLogDTO;
import net.guerlab.web.result.ListObject;
import net.guerlab.web.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * 支付记录服务接口
 *
 * @author guer
 */
@FeignClient(value = "pay-internal", path = "/inside/payLog")
public interface FeignPayLogApi {

    /**
     * 根据支付记录id查询支付记录
     *
     * @param payLogId
     *         支付记录id
     * @return 支付记录
     */
    @GetMapping("/{payLogId}")
    Result findOne(@PathVariable("payLogId") Long payLogId);

    /**
     * 根据搜索参数查询支付记录列表
     *
     * @param searchParams
     *         搜索参数
     * @return 支付记录列表
     */
    @PostMapping
    Result> findList(@RequestBody Map searchParams);

    /**
     * 根据搜索参数查询支付记录列表
     *
     * @param searchParams
     *         搜索参数
     * @return 支付记录列表
     */
    @PostMapping("/all")
    Result> findAll(@RequestBody Map searchParams);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy