Skip to content

Commit fe0c671

Browse files
committed
format
1 parent 53ad6b3 commit fe0c671

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

example/send_card.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ const main = async () => {
77

88
const client = MixinApi({ keystore });
99

10-
const resp = await client.message.sendAppCard('', {
10+
const resp = await client.message.sendAppCard('', {
1111
app_id: keystore.app_id,
1212
icon_url: 'https://mixin.one/',
13-
cover_url: "https://mixin.one/zh/assets/images/confidence-4f7bbf9bfa8adf0b1f2f1d8be7d0c94b.webp", // 16:10
13+
cover_url: 'https://mixin.one/zh/assets/images/confidence-4f7bbf9bfa8adf0b1f2f1d8be7d0c94b.webp', // 16:10
1414
title: 'Example Card',
1515
description: 'This is an example card.',
1616
actions: [
1717
{
18-
"label": "Mixin Website",
19-
"color": "#ABABAB",
20-
"action": "https://mixin.one"
21-
}
22-
]
18+
label: 'Mixin Website',
19+
color: '#ABABAB',
20+
action: 'https://mixin.one',
21+
},
22+
],
2323
});
2424
console.log(resp);
2525
};

src/client/types/message.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ export interface AppCardMessageRequest {
102102
description: string;
103103
action: string;
104104
cover_url?: string;
105-
actions?: AppButtonView[]
105+
actions?: AppButtonView[];
106106
shareable?: boolean;
107107
}
108108

109109
export interface AppButtonView {
110-
label: string;
111-
action: string;
112-
color: string;
110+
label: string;
111+
action: string;
112+
color: string;
113113
}
114114

115115
export interface FileMessageRequest {

0 commit comments

Comments
 (0)