first commit

This commit is contained in:
Your Name
2026-09-08 11:40:15 +08:00
commit a5353f7eb5
9568 changed files with 1646214 additions and 0 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}` : ''
});
}
}