knowledge

command module
v0.0.0-...-7b2405d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 12 Imported by: 0

README

zsxq

功能介绍

  1. 通过HTTP方式 获取知识星球 API,保存主题到数据库(MySQL),并且可以导出为文件

使用方式

  1. 执行 cp config.example.yaml config.yaml 生成配置文件
  2. 电脑端登录知识星球,复制 cookie 到 config.yaml cookie 字段
  3. 导入 MySQL (sql 文件在 docs/initsql.sql)
  4. 执行 make run 即可运行该项目(适合 go 构建运行其他方式也可,ex air)
备注
  1. 接口文档使用 swagger 生成,具体使用文档参考 swaggo/swag
  2. 设置 app.debug 可打开调试模式,观察终端日志,如果接口报 1059 错误,过段时间重新执行接口即可。
  3. 该项目之所以以 http 方式调用,而不是终端命令行是因为考虑到后期做管理后台。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL