GoodFeignClient

package com.seemygo.shop.cloud.web.feign;

import com.seemygo.shop.cloud.service.IGoodService;
import com.seemygo.shop.cloud.domain.Good;
import com.seemygo.shop.cloud.resp.Result;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

@RestController
public class GoodFeignClient implements GoodFeignApi {

    private final IGoodService goodService;

    public GoodFeignClient(IGoodService goodService) {
        this.goodService = goodService;
    }

    @Override
    public Result<List<Good>> getListByIdList(Set<Long> idList) {
        return Result.success(goodService.getListByIdList(idList));
    }
}

 

posted @ 2021-12-08 14:29  白芷100  阅读(24)  评论(0)    收藏  举报