Blame view

java110-interface/src/main/java/com/java110/intf/order/IIdSeqInnerServiceSMO.java 1.13 KB
88e030b7   王彪总   init project
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
  package com.java110.intf.order;
  
  import com.alibaba.fastjson.JSONObject;
  import com.java110.config.feign.FeignConfiguration;
  import com.java110.dto.system.IdSeqDto;
  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;
  
  /**
   * 用户信息管理,服务
   * Created by wuxw on 2017/4/5.
   */
  @FeignClient(name = "order-service", configuration = {FeignConfiguration.class})
  @RequestMapping("/idSeq")
  public interface IIdSeqInnerServiceSMO {
  
      /**
       * 根据sequence 表中name 查询ID
       *
       * @param primaryKeyInfo name信息封装
       * @return
       */
      @RequestMapping(value = "/queryPrimaryKey", method = RequestMethod.POST)
      public JSONObject queryPrimaryKey(@RequestBody JSONObject primaryKeyInfo) throws Exception;
  
      /**
       * 生成编码
       * @param idSeqDto
       * @throws Exception
       */
      @RequestMapping(value = "/generateCode", method = RequestMethod.POST)
      public IdSeqDto generateCode(@RequestBody IdSeqDto idSeqDto) ;
  }