Giter Site home page Giter Site logo

Comments (8)

TommyLemon avatar TommyLemon commented on May 21, 2024

目前还不支持,需要反射调用 class.getFields ,然后调用 MethodUtil.mockValue 为每个成员变量赋值。
https://www.likecs.com/show-307761888.html

不改源码的话可以导入后,点开用例,直接在网页编辑 User 对象,然后点右上角中间图标按钮 [上传/分享] 保存

from apiauto.

1134041701 avatar 1134041701 commented on May 21, 2024

在网页编辑 User 对象,然后点右上角中间图标按钮 [上传/分享] 保存
点击上传----没有请求后端接口
点击分享----看了表数据没有修改新增数据
不知道这里的上传和分享是同步修改了哪张表数据

from apiauto.

TommyLemon avatar TommyLemon commented on May 21, 2024

你漏了前面的步骤,一步步来,有问题把过程截屏发出来方便诊断

from apiauto.

TommyLemon avatar TommyLemon commented on May 21, 2024

目前还不支持,需要反射调用 class.getFields ,然后调用 MethodUtil.mockValue 为每个成员变量赋值。 https://www.likecs.com/show-307761888.html

不改源码的话可以导入后,点开用例,直接在网页编辑 User 对象,然后点右上角中间图标按钮 [上传/分享] 保存

2.9.0 已经支持
https://github.com/TommyLemon/UnitAuto/releases/tag/2.9.0
image

from apiauto.

1134041701 avatar 1134041701 commented on May 21, 2024

好的 感谢

from apiauto.

1134041701 avatar 1134041701 commented on May 21, 2024

对象入参的前端控制台报错,功能上没发现啥问题
image

from apiauto.

TommyLemon avatar TommyLemon commented on May 21, 2024

这个是尝试解析数组项注释,而实际上拿到的是对象键值对,格式不匹配导致的,不会对功能有影响,可以忽略
image

from apiauto.

1134041701 avatar 1134041701 commented on May 21, 2024

好的 感谢解答

from apiauto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.