feat: initialize license platform implementation
Some checks failed
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled

Add the Go Gin backend skeleton, Vue frontend shell, health check, CI workflow, implementation docs, and static review demo.\n\nCo-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
2026-09-30 14:30:36 +08:00
commit 3ab651d3a8
23 changed files with 3440 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import axios from 'axios'
type Connection = 'checking' | 'online' | 'offline'
const connection = ref<Connection>('checking')
async function checkConnection() {
connection.value = 'checking'
try {
const { data } = await axios.get<{ status: string }>('/api/v1/health/live', { timeout: 3000 })
connection.value = data.status === 'ok' ? 'online' : 'offline'
} catch {
connection.value = 'offline'
}
}
onMounted(checkConnection)
</script>
<template>
<div class="workspace">
<header class="topbar"><span class="wordmark"><span class="mark">L</span>License Hub</span><span class="environment">开发环境</span></header>
<main class="content">
<div class="heading"><div><p class="eyebrow">工程状态</p><h1>授权管理平台</h1><p class="subheading">Web 服务器端软件授权 · 首阶段实施</p></div><el-button @click="checkConnection">重新检测</el-button></div>
<section class="status-section" aria-labelledby="api-title">
<div><h2 id="api-title">API 连通性</h2><p>检测 Gin 服务的存活端点,不代表数据库或授权业务已就绪。</p></div>
<span class="status" :class="connection" role="status">{{ connection === 'checking' ? '检测中' : connection === 'online' ? '服务在线' : '服务未连接' }}</span>
</section>
<section class="scope" aria-labelledby="scope-title">
<h2 id="scope-title">实施范围</h2>
<dl><div><dt>首发对象</dt><dd>Web 服务器端软件</dd></div><div><dt>订单与存储</dt><dd>线下订单 · 本地文件</dd></div><div><dt>离线期限</dt><dd>最长连续 14 天</dd></div><div><dt>待确定</dt><dd>实例身份规则、部署拓扑与接入负责人</dd></div></dl>
</section>
<p class="footnote">当前仅完成工程骨架与存活检查。授权签发、登录和订单接口尚未实现。</p>
</main>
</div>
</template>