This commit is contained in:
Your Name
2026-03-11 09:49:47 +08:00
parent 02ae537b4c
commit 38ad60f4bb
290 changed files with 36917 additions and 123 deletions
@@ -0,0 +1,25 @@
import TUIBase from '../tui-base';
export default class TUIReportService extends TUIBase {
static instance: TUIReportService;
/**
* Get TUIReportService instance
*/
static getInstance() {
if (!TUIReportService.instance) {
TUIReportService.instance = new TUIReportService();
}
return TUIReportService.instance;
}
/**
* Report key feature usage for analytics
* @param code - Event code for analytics
* @param feature - Feature name or identifier
*/
public reportFeature(code: number, feature?: string) {
return this.getEngine().chat?.callExperimentalAPI('statTUIKeyFeatures', {
code,
msg: feature ? `${code}-${feature}` : ''
});
}
}