egg_server/utils/Card/common.ts
zhaoyingbo b44f66f6be
All checks were successful
Egg Server CI/CD / build-image (push) Successful in 1m9s
Egg Server CI/CD / refresh-image (push) Successful in 14s
Egg Server CI/CD / fast-deploy (push) Successful in 5s
feat(mi-chat): 优化消息返回功能
2024-10-11 10:59:32 +00:00

62 lines
947 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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,
}