feat(api): 完善家谱系统API客户端契约
- 实现家谱管理相关方法,包括创建、详情、概览、我的家谱和选项查询 - 添加家谱加入申请功能,支持申请、审核、取消和待审核列表操作 - 集成通知详情获取方法和通知ID安全验证机制 - 完善功德记录、谱文、相册、视频、祭祀活动的完整CRUD操作契约 - 实现家谱成员管理功能,包含成员列表、更新、移除和转让所有者操作 - 优化路径ID验证逻辑,拒绝不安全的数值ID并提供明确错误提示 - 更新测试用例以验证所有新增API方法的路径和请求体白名单机制
This commit is contained in:
+31
-17
@@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="public/css/profile-module.css" />
|
||||
<link rel="stylesheet" href="public/js/wangeditor5/css/style.css" />
|
||||
</head>
|
||||
<body class="page-profile-module" data-ceremony-edit-page data-feature-status="pending" data-feature-message="当前 PC 未提供活动创建或编辑接口,页面保持设计预览。">
|
||||
<body class="page-profile-module" data-ceremony-edit-page>
|
||||
<header class="site-header">
|
||||
<div class="container nav">
|
||||
<a class="brand magnetic" href="profile.html"
|
||||
@@ -31,8 +31,8 @@
|
||||
<div class="module-kicker">Gift Editor</div>
|
||||
<div class="module-title-row">
|
||||
<div>
|
||||
<h1>创建贺礼</h1>
|
||||
<p>维护贺礼类型、标题、时间地点、通知人员和邀请正文。</p>
|
||||
<h1 data-ceremony-editor-title>创建祭祀活动</h1>
|
||||
<p>维护活动类型、标题、时间地点和说明;受邀名单在活动详情中选择家谱成员。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,25 +47,20 @@
|
||||
</aside>
|
||||
<div class="module-main">
|
||||
<section class="module-panel">
|
||||
<h2>贺礼信息</h2>
|
||||
<form id="ceremony-edit-form" class="editor-form layui-form" data-ceremony-form>
|
||||
<h2>活动信息</h2>
|
||||
<div class="api-empty" data-ceremony-editor-placeholder>正在加载活动编辑信息…</div>
|
||||
<form id="ceremony-edit-form" class="editor-form layui-form" data-ceremony-form data-ceremony-editor hidden>
|
||||
<div class="editor-two">
|
||||
<div class="editor-field">
|
||||
<label for="giftType">贺礼类型</label
|
||||
><select id="giftType" name="ceremonyType">
|
||||
<option value="wedding">婚礼</option>
|
||||
<option value="education">升学</option>
|
||||
<option value="birthday">生日</option>
|
||||
<option value="ancestor">祭祀</option>
|
||||
<option value="other">其他</option>
|
||||
</select>
|
||||
<label for="giftType">活动类型</label
|
||||
><input id="giftType" name="ceremonyType" type="text" placeholder="请输入后端约定的活动类型" required />
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
<label for="giftDate">举办时间</label
|
||||
><input
|
||||
id="giftDate"
|
||||
name="ceremonyTime"
|
||||
type="text"
|
||||
type="datetime-local"
|
||||
placeholder="请选择时间"
|
||||
/>
|
||||
</div>
|
||||
@@ -83,12 +78,25 @@
|
||||
placeholder="请输入地点"
|
||||
/>
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
<label for="giftLocationAddress">详细地址</label
|
||||
><input id="giftLocationAddress" name="locationAddress" type="text" maxlength="300" placeholder="最多 300 个字符" />
|
||||
</div>
|
||||
<div class="editor-two">
|
||||
<div class="editor-field">
|
||||
<label for="giftLongitude">经度</label
|
||||
><input id="giftLongitude" name="longitude" type="number" min="-180" max="180" step="any" placeholder="与纬度同时填写" />
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
<label for="giftLatitude">纬度</label
|
||||
><input id="giftLatitude" name="latitude" type="number" min="-90" max="90" step="any" placeholder="与经度同时填写" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
<label for="giftContent">贺礼内容</label
|
||||
><textarea
|
||||
><textarea class="js-rich-editor"
|
||||
id="giftContent"
|
||||
name="ceremonyDesc"
|
||||
class="js-rich-editor"
|
||||
placeholder="请输入贺礼内容"
|
||||
></textarea>
|
||||
</div>
|
||||
@@ -99,6 +107,12 @@
|
||||
<input id="giftCoverFile" class="upload-input" type="file" accept="image/*" data-upload-target="#giftCoverOssId" data-upload-status="#giftCoverStatus" />
|
||||
<p id="giftCoverStatus" class="upload-status">未选择文件</p>
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
<label for="giftSortOrder">排序值</label
|
||||
><input id="giftSortOrder" name="sortOrder" type="number" step="1" placeholder="可选,数值越小越靠前" />
|
||||
</div>
|
||||
<input name="status" type="hidden" value="0" />
|
||||
<p class="upload-status" data-ceremony-form-status aria-live="polite"></p>
|
||||
<div class="bottom-actions">
|
||||
<button class="btn primary magnetic" type="submit">确定创建</button
|
||||
><a class="btn ghost magnetic" href="profile-gift.html"
|
||||
@@ -125,7 +139,7 @@
|
||||
<script src="utils/ApiClient.js"></script>
|
||||
<script src="public/js/md5.js"></script>
|
||||
<script src="public/js/upload-pages.js"></script>
|
||||
<script src="public/js/pending-pages.js"></script>
|
||||
<script src="public/js/ceremony-admin-pages.js"></script>
|
||||
<script src="public/js/page-effects.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user