-
Hi, @wu-clan
For example, when creating a user, the department id is hidden from the interface, it is not open to the outside world, and it is set by the backend |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
This doesn't seem very realistic, dept_id will be fixed default value This encompasses different scenarios, just set dept_id to an optional field, for front-end registrations, don't transmit it, for back-end registrations, transmit it |
Beta Was this translation helpful? Give feedback.
-
This is just an example. |
Beta Was this translation helpful? Give feedback.
-
Define a base schema and hide any specified fields, as discussed fastapi/fastapi#7585
|
Beta Was this translation helpful? Give feedback.
Define a base schema and hide any specified fields, as discussed fastapi/fastapi#7585