package webhook

import "github.com/tidbcloud/devops/api"

type JiraBindLarkGroupWhenEscalationRequest struct {
	IssueID         string `json:"issue_id" binding:"required"`          // The ID of the Jira issue
	IssueKey        string `json:"issue_key" binding:"required"`         // The key of the Jira issue
	OutwardIssueKey string `json:"outward_issue_key" binding:"required"` // The key of the outward issue to bind
	OutwardIssueID  string `json:"outward_issue_id" binding:"required"`  // The ID of the outward issue to bind
}

type JiraInviteAssigneeToLarkGroupRequest struct {
	IssueID       string `json:"issue_id" binding:"required"`       // The ID of the Jira issue
	IssueKey      string `json:"issue_key" binding:"required"`      // The key of the Jira issue
	AssigneeEmail string `json:"assignee_email" binding:"required"` // The email of the assignee to invite
}

type JiraCreateLarkGroupForS1TicketsRequest struct {
	IssueKey string `json:"issue_key" binding:"required"` // The key of the Jira issue
}

type JiraCreateLarkGroupForS1TicketsResponse struct {
	api.BaseResp `json:",inline"`

	GroupID *string `json:"group_id"` // The ID of the created lark group
	Detail  string  `json:"detail"`   // The detail message
}
