feat: 岗位管理模块新增和编辑接口新增字段校验

This commit is contained in:
insistence
2024-07-04 10:56:23 +08:00
parent 2a20042680
commit 66595d10a3
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,11 @@ class PostModel(BaseModel):
def get_post_sort(self):
return self.post_sort
def validate_fields(self):
self.get_post_code()
self.get_post_name()
self.get_post_sort()
class PostQueryModel(PostModel):
"""