swagger

移除 merchant

swagger

改造首页内容为通用后台管理系统定位

- 修改首页标题从 'LINUX DO Credit' 改为 'Modern Platform'
- 更新副标题为 '为二次开发而生'
- 更新首页描述为通用平台的特点
- 更新首页特性标签为 '开箱即用、高度可扩展、工业级基建'
- 修改展示卡片为技术栈和二次开发相关
- 更新开发者示例代码为通用的注册和 API Key 获取示例
- 更新页脚品牌名为 'Modern Platform'
- 调整页脚导航链接为通用平台相关内容

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

去除遗留

裁剪
移除 /api/v1/user/pay-key 相关代码

- 删除后端 UpdatePayKey 处理器函数和 UpdatePayKeyRequest 结构体
- 删除 User 模型中的 PayKey 字段
- 删除 User.VerifyPayKey 方法
- 删除 EncryptPayKeyFailed 错误常量
- 删除 /api/v1/user/pay-key PUT 路由
- 删除 OAuth 返回中的 IsPayKey 字段
- 删除前端 UserService.updatePayKey 方法
- 删除前端所有支付密钥 UI 和逻辑
- 更新相关的导出和注释

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

去除遗留

api 修正

系统配置

前端裁剪

后端裁剪

init
This commit is contained in:
ryan
2026-06-07 15:32:14 +08:00
parent 8a782525de
commit 48d414e197
180 changed files with 1538 additions and 27463 deletions
+19 -23
View File
@@ -15,11 +15,14 @@ export interface DeveloperSectionProps {
export const DeveloperSection = React.memo(function DeveloperSection({ className }: DeveloperSectionProps) {
const [copied, setCopied] = React.useState(false);
const codeContent = `curl https://credit.linux.do/epay/submit.php \\
-u sk_live_...: \\
-d amount=1000 \\
-d currency="cny" \\
-d description="Pro Plan"`;
const codeContent = `# 注册用户
curl -X POST https://api.example.com/api/v1/auth/register \\
-H "Content-Type: application/json" \\
-d '{
"username": "developer",
"email": "dev@example.com",
"password": "secure_password"
}'`;
const onCopy = async () => {
try {
@@ -79,11 +82,10 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
</div>
<pre className="text-xs sm:text-sm font-mono text-neutral-300 leading-relaxed whitespace-pre-wrap break-all sm:whitespace-pre sm:break-normal overflow-x-auto">
<code className="block">
<span className="text-purple-400">curl</span> <span className="text-green-400">https://credit.linux.do/epay/submit.php</span> \{'\n'}
{' '}-u <span className="text-yellow-400">sk_live_...:</span> \{'\n'}
{' '}-d <span className="text-blue-400">amount</span>=<span className="text-orange-400">1000</span> \{'\n'}
{' '}-d <span className="text-blue-400">currency</span>=<span className="text-green-400">&quot;cny&quot;</span> \{'\n'}
{' '}-d <span className="text-blue-400">description</span>=<span className="text-green-400">&quot;Pro Plan&quot;</span>
<span className="text-green-400"># 快速开始</span>{'\n'}
<span className="text-purple-400">curl</span> -X <span className="text-yellow-400">POST</span> <span className="text-green-400">https://api.example.com/api/v1/auth/register</span> \{'\n'}
{' '}-H <span className="text-blue-400">&quot;Content-Type: application/json&quot;</span> \{'\n'}
{' '}-d <span className="text-orange-400">&quot;username=dev&amp;password=***&quot;</span>
</code>
</pre>
</div>
@@ -100,19 +102,19 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
transition={{ duration: 0.8 }}
>
<h2 className="text-3xl md:text-5xl font-bold tracking-tight text-foreground leading-[1.1] mb-6">
简单直接,<br />
开发者快速集成
开发者友好,<br />
极速集成上手
</h2>
<p className="text-muted-foreground text-lg leading-relaxed mb-8">
标准化的 RESTful API 接口,清晰的错误提示,完善的调试工具。无论您使用什么编程语言,只需几行代码,即可完成积分服务功能接入。
标准化的 RESTful API 接口,完整的 TypeScript 类型定义,详细的文档和 Swagger UI。无论使用什么编程语言,只需几行代码,即可快速集成。
</p>
<ul className="space-y-4 mb-8">
{[
"RESTful API 接口,语义清晰",
"完善的 Webhook 回调通知",
"简单调试,开发测试零成本",
"完善的文档和示例代码"
"RESTful API,语义清晰,易于理解",
"OpenAPI / Swagger 接口文档",
"TypeScript 类型定义,开发友好",
"丰富的代码示例和集成指南"
].map((item, i) => (
<li key={i} className="flex items-center gap-3 text-sm text-foreground/80">
<div className="w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-primary">
@@ -130,12 +132,6 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
API 文档
</Button>
</Link>
<Link href="/merchant">
<Button variant="default" className="rounded-full text-xs hover:bg-primary/70">
<Key className="w-3 h-3" />
获取 API Key
</Button>
</Link>
</div>
</motion.div>
</div>