- demo 项目,增加 RPC 接口

This commit is contained in:
YunaiV
2019-09-23 22:45:06 +08:00
parent 683b9a7a19
commit 580b23885d
21 changed files with 202 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package cn.iocoder.mall.demo.rpc.api;
import cn.iocoder.mall.demo.rpc.vo.DemoProductVO;
public interface DemoProductRpcService {
DemoProductVO get(Integer id);
}

View File

@@ -0,0 +1 @@
package cn.iocoder.mall.demo.rpc;

View File

@@ -0,0 +1,22 @@
package cn.iocoder.mall.demo.rpc.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel("Demo 商品 BO")
@Data
public class DemoProductVO {
@ApiModelProperty(value = "编号", required = true, example = "1")
private Integer id;
@ApiModelProperty(value = "华为 Mate30 Pro", required = true, example = "小王")
private String name;
@ApiModelProperty(value = "价格,单位:分", required = true, example = "10")
private Integer price;
@ApiModelProperty(value = "库存数量", required = true, example = "100")
private Integer quantity;
}