jialh
1 天以前 dd6687b118561100e1677e88a9c2f5842a54c531
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.java110.intf.store;
 
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.store.StoreAttrDto;
import com.java110.dto.store.StoreDto;
import com.java110.dto.store.StoreUserDto;
import com.java110.po.store.StorePo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
 
import java.util.List;
 
/**
 * 商户 服务内部交互接口类
 * add by wuxw 2019-09-19
 */
@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
@RequestMapping("/storeApi")
public interface IStoreInnerServiceSMO {
 
    @RequestMapping(value = "/getStores", method = RequestMethod.POST)
    public List<StoreDto> getStores(@RequestBody StoreDto storeDto);
 
    @RequestMapping(value = "/getStoreAttrs", method = RequestMethod.POST)
    public List<StoreAttrDto> getStoreAttrs(@RequestBody StoreAttrDto storeAttrDto);
 
    @RequestMapping(value = "/getStoreCount", method = RequestMethod.POST)
    public int getStoreCount(@RequestBody StoreDto storeDto);
 
    /**
     * 修改商户信息
     * @param storePo
     * @return
     */
    @RequestMapping(value = "/updateStore", method = RequestMethod.POST)
    public int updateStore(@RequestBody StorePo storePo);
 
    /**
     * 查询员工和员工所属商户信息
     *
     * @param storeUserDto
     * @return
     */
    @RequestMapping(value = "/getStoreUserInfo", method = RequestMethod.POST)
    public List<StoreUserDto> getStoreUserInfo(@RequestBody StoreUserDto storeUserDto);
 
 
    /**
     * 查询商户员工数量
     *
     * @param storeUserDto
     * @return
     */
    @RequestMapping(value = "/getStoreStaffCount", method = RequestMethod.POST)
    int getStoreStaffCount(@RequestBody StoreUserDto storeUserDto);
 
    /**
     * 查询商户员工
     *
     * @param storeUserDto
     * @return
     */
    @RequestMapping(value = "/getStoreStaffs", method = RequestMethod.POST)
    public List<StoreUserDto> getStoreStaffs(@RequestBody StoreUserDto storeUserDto);
}