visuddhinanda e5bfd8548f 为了ror修改表结构 il y a 5 ans
..
article.md fefeab7357 :pencil: add article api #452 il y a 5 ans
channel.md 1ee7e3c158 修改表结构为pg 后端文档-版本管理 #425 il y a 5 ans
course.md e5bfd8548f 为了ror修改表结构 il y a 5 ans
deploy.md eaedf8621a 创建表结构初步设计文档 il y a 5 ans
dict.md 89f45f2515 🚧 api基本完成 后端-字典 #411 il y a 5 ans
group.md e5bfd8548f 为了ror修改表结构 il y a 5 ans
palicanon.md e5bfd8548f 为了ror修改表结构 il y a 5 ans
readme.md 8ef89c34dd Merge branch 'master' of https://github.com/visuddhinanda/mint il y a 5 ans
search.md e5bfd8548f 为了ror修改表结构 il y a 5 ans
share.md 0b0306c4a4 :memo: 字典初步设计 il y a 5 ans
term.md 47fb29f092 :memo: 建立 il y a 5 ans
translation.md 4352e53e01 修改表结构为pg 后端文档-译文 #430 il y a 5 ans
user.md 1e88a62f8e 修改表名称 -s il y a 5 ans
wbw.md 0b0306c4a4 :memo: 字典初步设计 il y a 5 ans

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 //可选