- demo 项目,修改 rpc 层,出参为 dto

This commit is contained in:
YunaiV
2019-09-26 01:19:42 +08:00
parent 2c7e1a97df
commit 9cadb9afd7
10 changed files with 21 additions and 19 deletions

View File

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

View File

@@ -1,9 +1,9 @@
package cn.iocoder.mall.demo.rpc.api;
import cn.iocoder.mall.demo.rpc.vo.DemoUserVO;
import cn.iocoder.mall.demo.rpc.dto.DemoUserDTO;
public interface DemoUserRpcService {
DemoUserVO get(Integer id);
DemoUserDTO get(Integer id);
}

View File

@@ -1,12 +1,12 @@
package cn.iocoder.mall.demo.rpc.vo;
package cn.iocoder.mall.demo.rpc.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel("Demo 商品 BO")
@ApiModel("Demo 商品 DTO")
@Data
public class DemoProductVO {
public class DemoProductDTO {
@ApiModelProperty(value = "编号", required = true, example = "1")
private Integer id;

View File

@@ -1,11 +1,11 @@
package cn.iocoder.mall.demo.rpc.vo;
package cn.iocoder.mall.demo.rpc.dto;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class DemoUserVO {
public class DemoUserDTO {
/**
* 用户编号