Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
8
Star
78
Fork
17
华北电力大学-iDeal
/
Python_RESTfulAPI_Codegen
Code
Issues
12
Pull Requests
0
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
允许设置某些字段为敏感字段,将为它们单独生成修改方法
Backlog
#I4YM65
开发任务
BlueLvRen
Opened this issue
2022-03-19 21:10
某些特殊场景,数据库中的某个字段修改需要比其他字段更高的权限(比如黑名单状态位,管理员可以修改用户的其他信息,但是只有超级管理员才可以修改用户的状态位信息),需要增加一个可选项,被选择的字段将被update和post方法过滤,并在service层中单独生成一个update方法用以修改被选择的字段。另外被选择的字段在数据库中应有默认值或可以为null以保证新记录可以正常添加。
某些特殊场景,数据库中的某个字段修改需要比其他字段更高的权限(比如黑名单状态位,管理员可以修改用户的其他信息,但是只有超级管理员才可以修改用户的状态位信息),需要增加一个可选项,被选择的字段将被update和post方法过滤,并在service层中单独生成一个update方法用以修改被选择的字段。另外被选择的字段在数据库中应有默认值或可以为null以保证新记录可以正常添加。
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Accepted
Declined
Assignees
Not set
Labels
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (5)
Tags (15)
master
dev
dev_ai
release
dev_update_ui
v2.4.3
v2.4.2
v2.4.1
v2.4
v2.3.1
v2.3.0
v2.2.0
v2.1.2
v2.1.1
v2.1.0
v2.0.0
v2.0.1
v1.0.0
v0.1.1
v0.1.0
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(1)
Python
1
https://gitee.com/ncepu-bj/Python_RESTfulAPI_Codegen.git
git@gitee.com:ncepu-bj/Python_RESTfulAPI_Codegen.git
ncepu-bj
Python_RESTfulAPI_Codegen
Python_RESTfulAPI_Codegen
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register