package response type MsgResponse struct { Success bool `json:"success"` ErrCode int `json:"errCode"` Msg string `json:"msg"` } type InfosData[T any] struct { Infos []T `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` } type InfoResponse[T any] struct { MsgResponse Info T `json:"info"` } type InfosResponse[T any] struct { MsgResponse InfosData[T] } type BusinessCatalogsInfoWithWorkflowTemplate struct { ID string `json:"id"` Name string `json:"name"` Code string `json:"code"` Sort int `json:"sort"` TenantID string `json:"tenantId" ` CreateUserID string `json:"createUserId"` LastUpdateUserID string `json:"lastUpdateUserId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` WorkTemplateId string `json:"workTemplateId"` } type PrepareInfo struct { //Flag int `json:"flag"` // 1-选择部门 2-选择审批人 //WorkflowFieldLabel string `json:"workflowFieldLabel"` //ChooseData []CustomStructureInfo `json:"chooseData"` //WorkflowFieldName string `json:"workflowFieldName"` ID string `json:"id"` Label string `json:"label"` Placeholder string `json:"placeholder"` Value string `json:"value"` Name string `json:"name"` Type string `json:"type"` Rules []Rule `json:"rules"` Options []Option `json:"options"` Props Props `json:"props"` } type Option struct { Label string `json:"label"` Value string `json:"value"` } type Props struct { Multiple bool `json:"multiple"` Filterable bool `json:"filterable"` } type Rule struct { Required bool `json:"required"` Message string `json:"message"` Trigger []string `json:"trigger"` } type CustomStructureInfo struct { ID string `json:"id"` Name string `json:"name"` Visible int `json:"visible"` Sort int `json:"sort"` ParentID string `json:"parentId"` Paths string `json:"paths" ` LeaderUserID string `json:"leaderUserId" ` LeaderUserName string `json:"leaderUserName"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId"` LastUpdateUserID string `json:"lastUpdateUserId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` }