feat: add audit and app log services

This commit is contained in:
QiuSW
2026-07-09 00:55:46 +08:00
parent 3bd05b316e
commit 769c861eb0
20 changed files with 804 additions and 30 deletions
@@ -0,0 +1,40 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as models$0 from "../models/models.js";
/**
* @param {models$0.AuditLogFilter} filter
* @returns {Promise<models$0.AuditLog[]> & { cancel(): void }}
*/
export function List(filter) {
let $resultPromise = /** @type {any} */($Call.ByID(1985320716, filter));
let $typingPromise = /** @type {any} */($resultPromise.then(($result) => {
return $$createType1($result);
}));
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
return $typingPromise;
}
/**
* @param {string} action
* @param {string} targetType
* @param {string} targetID
* @param {string} detail
* @returns {Promise<void> & { cancel(): void }}
*/
export function Record(action, targetType, targetID, detail) {
let $resultPromise = /** @type {any} */($Call.ByID(1661109649, action, targetType, targetID, detail));
return $resultPromise;
}
// Private type creation functions
const $$createType0 = models$0.AuditLog.createFrom;
const $$createType1 = $Create.Array($$createType0);