4
动态属性必填怎么实现?
source link: https://www.oschina.net/question/2327172_2323767
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
动态属性必填怎么实现?
一般的接口的 更新 和新增的 实体基本都是一致的,但是有些属性,新增的时候非空,更新的时候允许为 null(null 则不进行更新操作),这样情况下下,就要让接口文档在新增的时候要求属性必填,更新的时候非必填,怎么实现呢?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK