活动模板设计 v3(完整版)

基于旧系统 sohike.cn 全部149条活动分析,确认2种核心模板


一、数据库字段(最大化全集)

系统自动字段

字段类型说明
activity_nostring活动编号(自动生成)
templateenum模板类型: weekend / holiday / special / rich
created_byUUID发布人
created_atdatetime创建日期
register_startdatetime报名开始时间
checkin_timedatetime签到时间
end_timedatetime活动结束时间
natureenum活动性质(开放性/会员专属)

模板可配置字段

#字段类型说明长文本
1themestring活动主题
2plannerstring轮值规划师/规划师
3date_startdate开始日期
4date_enddate结束日期(多日活动)
5meeting_timestring集合时间(时:分)
6locationstring活动地点
7meeting_pointstring集合地点(可定位)
8contenttext活动内容HTML
9routetext活动路线HTML
10difficultyenum难度级别
11weathertext天气状况
12scheduletext活动行程(多日分段)HTML
13transportationtext交通方式
14feestring活动费用
15geartext装备建议HTML
16registration_methodtext报名方法
17notestext注意事项HTML
18disclaimertext免责声明HTML
19fee_detailtext费用明细(住宿/门票分项)HTML
20hiking_scoredecimal健行分值
21max_participantsint人数上限(选填)
22cover_imagestring封面图URL

HTML 标记的字段支持简单格式编辑(加粗、换行、列表),底层存储HTML。


二、两种核心模板

模板A:周末例行户外(weekend)— 122个活动

当天来回、路线固定的周末活动

字段必填
1theme 活动主题
2planner 轮值规划师
3date_start 活动日期
4meeting_time 集合时间
5location 活动地点
6meeting_point 集合地点
7content 活动内容
8route 活动路线
9difficulty 难度级别
10weather 天气状况
11schedule 活动行程
12transportation 交通方式
13fee 活动费用
14gear 装备建议
15registration_method 报名方法
16notes 注意事项
17hiking_score 健行分值

模板B:会员专属(holiday)— 21个活动

节假日多日出行、会员专属活动,增设免责声明

字段必填
同模板A(1-17项)+ 以下
18disclaimer 免责声明
19max_participants 人数上限

模板C:富文本报名(rich)— D类

字段必填
同模板B + 以下
20fee_detail 费用明细表

三、模板定制机制

数据结构

TEMPLATES = {
    "weekend": {
        "name": "周末例行户外",
        "fields": [
            {"key": "theme",  "label": "活动主题",   "required": True, "sort": 1},
            {"key": "planner","label": "轮值规划师","required": True, "sort": 2},
            ...
        ]
    },
    "holiday": { ... },
    "rich": { ... }
}

定制方式


四、补充需求(2026-06-24)

报名管理

时间与地点

内容格式

📊 已爬取旧系统全部149个活动(ID:582-802),确认仅2种核心模板。
此版本已覆盖全部字段和后续补充需求。