Jeremy Zheng 7770367ff5 :truck: move background source codes into api-v8 1 éve
..
README.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
article.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
author_format.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
channel.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
course.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
deploy.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
dict.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
group.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
palicanon.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
share.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
term.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
translation.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
user.md 7770367ff5 :truck: move background source codes into api-v8 1 éve
wbw.md 7770367ff5 :truck: move background source codes into api-v8 1 éve

README.md

注意

  • 该文档尚未完善,内容仅供参考
  • 该文档中的技术方案尚未敲定,如涉及具体开发,需先行商议

后端开发文档

开发环境(待商议)

  • golang
  • gin
  • PostgreSQL
  • Redis
  • ES

给 vscode 用的 go

sudo apt install yarnpkg golang-go

文档资源

redis https://pkg.go.dev/github.com/go-redis/redis/v8#section-documentation

依赖

https://github.com/go-redis/redis

目录

数据表设计

数据表应包含如下字段

    id SERIAL PRIMARY KEY,
    version     INTEGER NOT NULL DEFAULT (1),
    created_at  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    deleted_at  TIMESTAMP //可选