返回顶部
w

waimai-merchant外卖商家管理

外卖商家管理 Skill - 支持商家注册、商品管理、价格修改和配送时间设置。Use when user mentions merchant registration, product management, price updates, delivery time settings for food delivery business.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
284
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

waimai-merchant

外卖商家管理

外卖商家管理系统,支持商家注册、商品管理、价格修改和配送承诺时间设置。

核心功能

  1. 1. 商家注册 - 商家信息录入、认证管理
  2. 商品上传 - 添加新商品(名称、描述、图片、价格等)
  3. 价格修改 - 更新商品价格
  4. 配送承诺时间 - 设置/修改每个商品的承诺到货时间

安装依赖

bash
cd ~/.openclaw/workspace/skills/waimai-merchant
npm install
npm run build

CLI 命令入口

商家管理命令

bash

注册新商家


node dist/index.js merchant register -n 美味餐厅 -p 13800138000 -a 北京市朝阳区xxx街道

列出所有商家

node dist/index.js merchant list

按状态筛选商家

node dist/index.js merchant list --status approved

查看商家详情

node dist/index.js merchant show

更新商家信息

node dist/index.js merchant update -n 新名称 -p 新电话

认证商家

node dist/index.js merchant approve

拒绝商家

node dist/index.js merchant reject

暂停商家

node dist/index.js merchant suspend

删除商家

node dist/index.js merchant delete

搜索商家

node dist/index.js merchant search

商品管理命令

bash

添加新商品


node dist/index.js product add -m -n 红烧肉 -p 38.00 -c 热菜 -t 30 -s 100

列出商品

node dist/index.js product list

按商家筛选商品

node dist/index.js product list -m

只显示上架商品

node dist/index.js product list -a

按分类筛选

node dist/index.js product list -c 热菜

查看商品详情

node dist/index.js product show

更新商品信息

node dist/index.js product update -n 新名称 -d 新描述

修改商品价格

node dist/index.js product price

修改配送时间

node dist/index.js product delivery

上架商品

node dist/index.js product activate

下架商品

node dist/index.js product deactivate

标记售罄

node dist/index.js product soldout

删除商品

node dist/index.js product delete

搜索商品

node dist/index.js product search

列出所有分类

node dist/index.js product categories

其他命令

bash

查看数据存储位置


node dist/index.js data

显示帮助

node dist/index.js --help node dist/index.js merchant --help node dist/index.js product --help

数据结构

商家 (Merchant)

字段类型说明
idINTEGER主键
name
TEXT | 商家名称 | | phone | TEXT | 联系电话(唯一) | | email | TEXT | 电子邮箱 | | address | TEXT | 商家地址 | | business_license | TEXT | 营业执照号 | | contact_person | TEXT | 联系人姓名 | | status | TEXT | 状态:pending/approved/rejected/suspended | | created_at | DATETIME | 创建时间 | | updated_at | DATETIME | 更新时间 |

商品 (Product)

字段类型说明
idINTEGER主键
merchant_id
INTEGER | 商家ID(外键) | | name | TEXT | 商品名称 | | description | TEXT | 商品描述 | | price | REAL | 当前价格 | | original_price | REAL | 原价 | | image_url | TEXT | 商品图片URL | | category | TEXT | 商品分类 | | delivery_time | INTEGER | 配送承诺时间(分钟) | | stock | INTEGER | 库存数量 | | status | TEXT | 状态:active/inactive/sold_out | | created_at | DATETIME | 创建时间 | | updated_at | DATETIME | 更新时间 |

数据存储

数据存储在: ~/.waimai-merchant/

  • - merchant.db - SQLite 数据库文件

使用流程

商家入驻流程

  1. 1. 注册商家: 使用 merchant register 录入基本信息
  2. 等待审核: 商家状态为 pending
  3. 审核通过: 管理员使用 merchant approve 通过认证
  4. 开始营业: 商家可以添加商品

商品管理流程

  1. 1. 添加商品: 使用 product add 创建商品
  2. 设置价格: 初始价格可在添加时设置,后续用 product price 修改
  3. 设置配送时间: 初始配送时间在添加时设置,后续用 product delivery 修改
  4. 上架销售: 使用 product activate 将商品上架
  5. 日常管理: 根据库存情况使用 product soldout 或 product deactivate

技术栈

  • - 语言: TypeScript / Node.js
  • 数据库: SQLite (better-sqlite3)
  • CLI 框架: Commander.js
  • 样式: Chalk

扩展计划

以下功能为后续迭代方向:

  • - [ ] Web 管理界面
  • [ ] 订单管理功能
  • [ ] 数据统计报表
  • [ ] API 接口开发
  • [ ] 与 waimai-ai.ai 网站集成

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 waimai-merchant-1776185284 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 waimai-merchant-1776185284 技能

通过命令行安装

skillhub install waimai-merchant-1776185284

下载

⬇ 下载 waimai-merchant v1.0.0(免费)

文件大小: 41.5 KB | 发布时间: 2026-4-15 11:28

v1.0.0 最新 2026-4-15 11:28
Waimai Merchant 1.0.0 初始发布。

- 支持商家注册、信息管理与审核,包括商家入驻和状态管理。
- 实现商品的添加、管理、上下架、价格及配送时间设置。
- 提供商品分类、库存、搜索等操作命令。
- 所有数据本地存储于 SQLite 数据库,具备详细字段结构。
- 操作均通过命令行界面(CLI)完成,附带帮助文档与使用说明。

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部