From 2111c6155bb973b60a555afee0c80b2aca75ba05 Mon Sep 17 00:00:00 2001 From: lincg-bytedance Date: Wed, 17 Sep 2025 16:06:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=86=B2=E7=AA=81=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=EF=BC=8C=E5=BD=93=E5=89=8D=E6=96=87=E4=BB=B6=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=AD=98=E5=9C=A8A=20->=20B=20->=20C=20->=20A?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=84=8F=E4=BA=86=EF=BC=8C=E5=9B=A0=E6=AD=A4=E7=94=A8?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E4=BB=A3=E7=A0=81=E6=9D=A5=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/service/workitem/model.go | 58 +++++------------------------------- 1 file changed, 8 insertions(+), 50 deletions(-) diff --git a/v2/service/workitem/model.go b/v2/service/workitem/model.go index d2111b9..ee9485f 100644 --- a/v2/service/workitem/model.go +++ b/v2/service/workitem/model.go @@ -101,20 +101,20 @@ type CompInfo struct { type Condition struct { - Field *string `json:"field,omitempty"` - - FieldType *string `json:"field_type,omitempty"` - - WorkItemTypeKey *string `json:"work_item_type_key,omitempty"` + FieldItem *FieldItem `json:"field_item,omitempty"` Operator *string `json:"operator,omitempty"` - ValueList []string `json:"value_list,omitempty"` + OriginalValue *string `json:"original_value,omitempty"` - Params map[string]string `json:"params,omitempty"` + Formula *string `json:"formula,omitempty"` Version *string `json:"version,omitempty"` + PreOperator *string `json:"pre_operator,omitempty"` + + ValueGroup *Filter `json:"value_group,omitempty"` + } type ConfirmForm struct { @@ -133,8 +133,6 @@ type Connection struct { TransitionID *int64 `json:"transition_id,omitempty"` - Fields []FieldConf `json:"fields,omitempty"` - } type CreateWorkItemRelationData struct { @@ -255,12 +253,6 @@ type Expand struct { NeedSubTaskParent *bool `json:"need_sub_task_parent,omitempty"` - NeedUnionDeliverable *bool `json:"need_union_deliverable,omitempty"` - - NeedWbsRelationChainEntity *bool `json:"need_wbs_relation_chain_entity,omitempty"` - - NeedWbsRelationChainPath *bool `json:"need_wbs_relation_chain_path,omitempty"` - } type FieldConf struct { @@ -367,8 +359,6 @@ type FieldValuePair struct { HelpDescription *string `json:"help_description,omitempty"` - UpdateMode *int32 `json:"update_mode,omitempty"` - } type Filter struct { @@ -669,10 +659,6 @@ type NodesConnections struct { UserDetails []UserDetail `json:"user_details,omitempty"` - TemplateID *int64 `json:"template_id,omitempty"` - - Version *int64 `json:"version,omitempty"` - } type NumberConfig struct { @@ -1369,10 +1355,6 @@ type RoleOwner struct { Owners []string `json:"owners,omitempty"` - Exist *bool `json:"exist,omitempty"` - - IsMemberMulti *bool `json:"is_member_multi,omitempty"` - } type Schedule struct { @@ -1387,10 +1369,6 @@ type Schedule struct { ActualWorkTime *float64 `json:"actual_work_time,omitempty"` - IsAuto *bool `json:"is_auto,omitempty"` - - PlannedConstructionPeriod *int32 `json:"planned_construction_period,omitempty"` - } type ScheduleReferenceValue struct { @@ -1553,16 +1531,10 @@ type SimpleRoleConf struct { type Sort struct { - FieldKey *string `json:"field_key,omitempty"` - - FieldType *string `json:"field_type,omitempty"` - - WorkItemTypeKey *string `json:"work_item_type_key,omitempty"` + FieldItem *FieldItem `json:"field_item,omitempty"` Order *string `json:"order,omitempty"` - Params map[string]string `json:"params,omitempty"` - } type StateFlowConfInfo struct { @@ -1705,10 +1677,6 @@ type SubTask struct { Deliverable []FieldValuePair `json:"deliverable,omitempty"` - OwnerRoles []string `json:"owner_roles,omitempty"` - - OwnerUsageMode *int64 `json:"owner_usage_mode,omitempty"` - Fields []FieldValuePair `json:"fields,omitempty"` } @@ -2175,8 +2143,6 @@ type WorkItemInfo struct { SubTaskParentInfo *SubTaskParentInfo `json:"sub_task_parent_info,omitempty"` - CompoundFieldExtra []FieldValuePair `json:"compound_field_extra,omitempty"` - } type WorkItemKeyType struct { @@ -2791,12 +2757,4 @@ type WorkflowNode struct { Participants []string `json:"participants,omitempty"` - OwnerRoles []string `json:"owner_roles,omitempty"` - - OwnerUsageMode *int64 `json:"owner_usage_mode,omitempty"` - - NodeFields []NodeField `json:"node_fields,omitempty"` - - FinishedInfos *FinishedInfo `json:"finished_infos,omitempty"` - }