- demo 项目,增加 RPC 接口
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package cn.iocoder.mall.demo.rpc;
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user