package feishu

// Params
type FeishuChatParams struct {
	AppId     string
	AppSecret string
	ChatId    string
}

type FeishuCardParams struct {
	Title string
	Color string
	Text  string
}

// JSON
type FeishuCard struct {
	Config   CardConfig    `json:"config"`
	Elements []CardElement `json:"elements"`
	Header   CardHeader    `json:"header"`
}

type CardConfig struct {
	WideScreenMode bool `json:"wide_screen_mode"`
}

type CardHeader struct {
	ColorTemplate string    `json:"template"`
	Title         CardTitle `json:"title"`
}

type CardTitle struct {
	Content string `json:"content"`
	Tag     string `json:"tag"`
}

type CardElement struct {
	Content string `json:"content"`
	Tag     string `json:"tag"`
}

// consts

type UrgentType int
