feat: 添加投标项目查看器组件及后端支持
This commit is contained in:
11
widget/looker/frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
11
widget/looker/frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {main} from '../models';
|
||||
|
||||
export function GetDatabaseConfig():Promise<main.DatabaseConfig>;
|
||||
|
||||
export function GetDatabaseDSN():Promise<string>;
|
||||
|
||||
export function GetPinnedBidItems():Promise<Array<main.BidItem>>;
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
19
widget/looker/frontend/wailsjs/go/main/App.js
Normal file
19
widget/looker/frontend/wailsjs/go/main/App.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function GetDatabaseConfig() {
|
||||
return window['go']['main']['App']['GetDatabaseConfig']();
|
||||
}
|
||||
|
||||
export function GetDatabaseDSN() {
|
||||
return window['go']['main']['App']['GetDatabaseDSN']();
|
||||
}
|
||||
|
||||
export function GetPinnedBidItems() {
|
||||
return window['go']['main']['App']['GetPinnedBidItems']();
|
||||
}
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['main']['App']['Greet'](arg1);
|
||||
}
|
||||
53
widget/looker/frontend/wailsjs/go/models.ts
Normal file
53
widget/looker/frontend/wailsjs/go/models.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
export namespace main {
|
||||
|
||||
export class BidItem {
|
||||
id: string;
|
||||
title: string;
|
||||
url: string;
|
||||
publishDate: string;
|
||||
source: string;
|
||||
pin: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new BidItem(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.title = source["title"];
|
||||
this.url = source["url"];
|
||||
this.publishDate = source["publishDate"];
|
||||
this.source = source["source"];
|
||||
this.pin = source["pin"];
|
||||
this.createdAt = source["createdAt"];
|
||||
this.updatedAt = source["updatedAt"];
|
||||
}
|
||||
}
|
||||
export class DatabaseConfig {
|
||||
Type: string;
|
||||
Host: string;
|
||||
Port: string;
|
||||
Username: string;
|
||||
Password: string;
|
||||
Name: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new DatabaseConfig(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.Type = source["Type"];
|
||||
this.Host = source["Host"];
|
||||
this.Port = source["Port"];
|
||||
this.Username = source["Username"];
|
||||
this.Password = source["Password"];
|
||||
this.Name = source["Name"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user