chore: initialize qiming workspace repository

This commit is contained in:
Codex
2026-05-29 14:22:48 +08:00
commit bfd67a0f2c
10750 changed files with 1885711 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>app-platform-credit</artifactId>
<groupId>com.xspaceagi</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>app-platform-credit-spec</artifactId>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.xspaceagi</groupId>
<artifactId>system-sdk</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,15 @@
package com.xspaceagi.credit.spec.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum CreditOperationTypeEnum {
ADD(1, "增加"),
DEDUCT(2, "扣减");
private final Integer code;
private final String desc;
}

View File

@@ -0,0 +1,34 @@
package com.xspaceagi.credit.spec.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum CreditTypeEnum {
SUBSCRIPTION(1, "订阅积分"),
PURCHASE(2, "增购积分"),
ACTIVITY(3, "活动积分"),
MANUAL(4, "系统发放"),
LOAN(5, "借贷"),
MODEL_CALL(10, "模型调用"),
AGENT_CALL(11, "智能体调用"),
TOOL_CALL(12, "工具调用"),
MANUAL_DEDUCT(13, "系统扣减");
private final Integer code;
private final String desc;
public static CreditTypeEnum getByCode(Integer code) {
if (code == null) {
return null;
}
for (CreditTypeEnum typeEnum : values()) {
if (typeEnum.getCode().equals(code)) {
return typeEnum;
}
}
return null;
}
}