package model

type ApprovalLarkResData struct {
	InstanceCode string `json:"instance_code"`
}
type LarkCreateApprovalBody struct {
	ApprovalCode string `json:"approval_code"`
	UserId       string `json:"user_id,omitempty"`
	OpenId       string `json:"open_id"`
	Form         string `json:"form"`
}
type FormItem struct {
	Id    string      `json:"id"`
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type LarkReplyMsgResData struct {
	MessageID      string `json:"message_id"`
	RootID         string `json:"root_id"`
	ParentID       string `json:"parent_id"`
	MessageType    string `json:"message_type"`
	CreateTime     string `json:"create_time"`
	ChatID         string `json:"chat_id"`
	UpperMessageID string `json:"upper_message_id"`
	Body           struct {
		Content string `json:"content"`
	} `json:"body"`
	Mentions []struct {
		Key       string `json:"key"`
		ID        string `json:"id"`
		IdType    string `json:"id_type"`
		Name      string `json:"name"`
		TenantKey string `json:"tenant_key"`
	} `json:"mentions"`
	Sender struct {
		ID         string `json:"id"`
		IdType     string `json:"id_type"`
		SenderType string `json:"sender_type"`
		TenantKey  string `json:"tenant_key"`
	} `json:"sender"`
}
