You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
2 months ago
|
from pydantic import BaseModel
|
||
|
from typing import Union, Optional, List
|
||
|
from module_admin.annotation.pydantic_annotation import as_query
|
||
|
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
||
|
from pydantic.alias_generators import to_camel
|
||
|
|
||
|
|
||
|
class ApplyModel(BaseModel):
|
||
|
businessType: Optional[str] = None
|
||
|
businessId: Optional[str] = None
|
||
|
applicant: Optional[str] = None
|
||
|
|
||
|
|
||
|
class OperateModel(BaseModel):
|
||
|
flowId: Optional[str] = None # 流程编号
|
||
|
operateType: Optional[str] = None # 操作:驳回,同意:reject, success
|
||
|
operateComment: Optional[str] = None # 审批意见
|
||
|
|
||
|
|
||
|
@as_query
|
||
|
class ApprovalQueryObject(BaseModel):
|
||
|
model_config = ConfigDict(alias_generator=to_camel, from_attributes=True)
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
applicant: Optional[str] = None
|
||
|
businessType: Optional[str] = None
|
||
|
|
||
|
|
||
|
class EditObjectModel(BaseModel):
|
||
|
id: Optional[str] = None
|
||
|
status: Optional[str] = None
|
||
|
approver: Optional[str] = None
|
||
|
nextStep: Optional[int] = None
|
||
|
approvalFlow: Optional[str] = None
|