workflow multi languages
This commit is contained in:
@@ -30,7 +30,11 @@ export type NotifyChannel =
|
||||
| NotifyChannelMail
|
||||
| NotifyChannelBark;
|
||||
|
||||
export const channels = [
|
||||
type ChannelLabel = {
|
||||
name: string;
|
||||
label: string;
|
||||
};
|
||||
export const channels: ChannelLabel[] = [
|
||||
{
|
||||
name: "dingtalk",
|
||||
label: "common.provider.dingtalk",
|
||||
@@ -61,6 +65,8 @@ export const channels = [
|
||||
},
|
||||
];
|
||||
|
||||
export const channelLabelMap: Map<string, ChannelLabel> = new Map(channels.map((item) => [item.name, item]));
|
||||
|
||||
export type NotifyChannelDingTalk = {
|
||||
accessToken: string;
|
||||
secret: string;
|
||||
|
||||
Reference in New Issue
Block a user