This commit is contained in:
2025-10-29 15:01:32 +08:00
parent bf62770699
commit 98210ef15c
12 changed files with 71 additions and 240 deletions

View File

@@ -1,18 +1,17 @@
import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
import { userDescription } from './resources/user';
import { companyDescription } from './resources/company';
import { distributionDescription } from './resources/distribution';
export class GwezzChangdunovel implements INodeType {
description: INodeTypeDescription = {
displayName: 'Gwezz Changdunovel',
displayName: 'Gwezz 常读分销',
name: 'gwezzChangdunovel',
icon: { light: 'file:gwezzChangdunovel.svg', dark: 'file:gwezzChangdunovel.dark.svg' },
icon: { light: 'file:gwezz.svg', dark: 'file:gwezz.dark.svg' },
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Interact with the Gwezz Changdunovel API',
description: 'Interact with the Changdunovel API',
defaults: {
name: 'Gwezz Changdunovel',
name: 'Gwezz 常读分销',
},
usableAsTool: true,
inputs: ['main'],
@@ -27,24 +26,19 @@ export class GwezzChangdunovel implements INodeType {
},
properties: [
{
displayName: 'Resource',
displayName: '资源',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'User',
value: 'user',
},
{
name: 'Company',
value: 'company',
name: '分销',
value: 'distribution',
},
],
default: 'user',
default: 'distribution',
},
...userDescription,
...companyDescription,
...distributionDescription,
],
};
}