Files
iotlcm/internal/model/agent_role_sync.go
T
2026-10-29 14:52:43 +08:00

23 lines
819 B
Go

package model
type AgentRoleSyncMessage struct {
TemplateRole bool `json:"templateRole,omitempty"`
Superseded bool `json:"superseded,omitempty"`
TaskId string `json:"taskId,omitempty"`
TotalCount int `json:"totalCount,omitempty"`
SuccessCount int `json:"successCount,omitempty"`
FailedCount int `json:"failedCount,omitempty"`
TenantId string `json:"tenantId"`
SourceRoleId int64 `json:"sourceRoleId"`
SourceDeptId int64 `json:"sourceDeptId"`
ActorId int64 `json:"actorId"`
RetryCount int `json:"retryCount"`
ChildDeptIds []int64 `json:"childDeptIds,omitempty"`
}
type AgentRoleSyncDeadLetterMessage struct {
Message AgentRoleSyncMessage `json:"message"`
Error string `json:"error"`
FailedAt string `json:"failedAt"`
}