feat 存档

This commit is contained in:
2026-03-21 20:21:37 +08:00
parent 21965ef95e
commit 86c63292b2
39 changed files with 8881 additions and 51 deletions

View File

@@ -1,8 +1,24 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {ai} from '../models';
import {backend} from '../models';
export function GetAIContent(arg1:string):Promise<Array<ai.Message>>;
export function GetCallWord():Promise<Array<string>>;
export function GetFangWenContent(arg1:string):Promise<string>;
export function GetModelConfig():Promise<backend.ModelConfig>;
export function GetNovelContent(arg1:string):Promise<string>;
export function GetNovelList():Promise<Array<string>>;
export function GetToken(arg1:string):Promise<string>;
export function SetCallWord(arg1:Array<string>):Promise<void>;
export function SetModelConfig(arg1:backend.ModelConfig):Promise<void>;
export function WriteNovelContent(arg1:string):Promise<string>;

View File

@@ -2,6 +2,22 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function GetAIContent(arg1) {
return window['go']['backend']['App']['GetAIContent'](arg1);
}
export function GetCallWord() {
return window['go']['backend']['App']['GetCallWord']();
}
export function GetFangWenContent(arg1) {
return window['go']['backend']['App']['GetFangWenContent'](arg1);
}
export function GetModelConfig() {
return window['go']['backend']['App']['GetModelConfig']();
}
export function GetNovelContent(arg1) {
return window['go']['backend']['App']['GetNovelContent'](arg1);
}
@@ -10,6 +26,18 @@ export function GetNovelList() {
return window['go']['backend']['App']['GetNovelList']();
}
export function GetToken(arg1) {
return window['go']['backend']['App']['GetToken'](arg1);
}
export function SetCallWord(arg1) {
return window['go']['backend']['App']['SetCallWord'](arg1);
}
export function SetModelConfig(arg1) {
return window['go']['backend']['App']['SetModelConfig'](arg1);
}
export function WriteNovelContent(arg1) {
return window['go']['backend']['App']['WriteNovelContent'](arg1);
}

View File

@@ -0,0 +1,42 @@
export namespace ai {
export class Message {
role: string;
content: string;
static createFrom(source: any = {}) {
return new Message(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.role = source["role"];
this.content = source["content"];
}
}
}
export namespace backend {
export class ModelConfig {
key: string;
model: string;
in: number;
out: number;
static createFrom(source: any = {}) {
return new ModelConfig(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.key = source["key"];
this.model = source["model"];
this.in = source["in"];
this.out = source["out"];
}
}
}