Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] dto生成yapi数据类型为null #1090

Open
xuhaoshen opened this issue Dec 6, 2023 · 1 comment
Open

[Bug] dto生成yapi数据类型为null #1090

xuhaoshen opened this issue Dec 6, 2023 · 1 comment
Labels
status: feedback required feedback required type: bug Something isn't working

Comments

@xuhaoshen
Copy link

问题描述

dto生成yapi数据类型为null

过程

实体类

/**
 * 直邮任务详情
 */
@Data
public class DmDetailDto {

    /**
     * 销售id
     */
    private Long salesOprId;

    /**
     * 产品id
     */
    private Long pdtid;

    /**
     * 客户id
     */
    private Long accid;

    /**
     * 客户名称
     */
    private String caccname;

    /**
     * 销售人员
     */
    private String saleName;

    private String saleEmail;
}

image

config配置
api.name=#api.name

idea版本
IntelliJ IDEA 2023.2.5 (Ultimate Edition)

@xuhaoshen xuhaoshen added the type: bug Something isn't working label Dec 6, 2023
@tangcent
Copy link
Owner

tangcent commented Dec 6, 2023

  1. 试试在DmDetailDto里右键EasyApi > To Json5,看看输出是否符合预期
  2. 加个配置,看看提交给yapi的信息是否正确
http.call.before=groovy:```
    logger.info("call:"+request.url())
    logger.info("body:"+request.body())
```

@tangcent tangcent added the status: feedback required feedback required label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback required feedback required type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants