62 lines
947 B
TypeScript
62 lines
947 B
TypeScript
export const commonNote = {
|
||
tag: "note",
|
||
elements: [
|
||
{
|
||
tag: "plain_text",
|
||
content: "🍳 功能由${xAuthor}提供支持,Rid:${requestId}",
|
||
},
|
||
],
|
||
}
|
||
|
||
export const successHeader = {
|
||
template: "green",
|
||
title: {
|
||
content: "🔥 感谢使用 ${xName}",
|
||
tag: "plain_text",
|
||
},
|
||
}
|
||
|
||
export const errorHeader = {
|
||
template: "red",
|
||
title: {
|
||
content: "⛔ ${xName} 错误提示",
|
||
tag: "plain_text",
|
||
},
|
||
}
|
||
|
||
export const pendingHeader = {
|
||
template: "purple",
|
||
title: {
|
||
content: "🔥 感谢使用 ${xName}",
|
||
tag: "plain_text",
|
||
},
|
||
}
|
||
|
||
export const baseSuccessCard = {
|
||
elements: [
|
||
{
|
||
tag: "markdown",
|
||
content: "${content}",
|
||
},
|
||
{
|
||
tag: "hr",
|
||
},
|
||
commonNote,
|
||
],
|
||
successHeader,
|
||
}
|
||
|
||
export const baseErrorCard = {
|
||
elements: [
|
||
{
|
||
tag: "markdown",
|
||
content: "${content}",
|
||
},
|
||
{
|
||
tag: "hr",
|
||
},
|
||
commonNote,
|
||
],
|
||
errorHeader,
|
||
}
|