GithubHelp home page GithubHelp logo

gugoorg / gugotik Goto Github PK

View Code? Open in Web Editor NEW
128.0 128.0 17.0 961 KB

第六届字节跳动青训营后端进阶实战项目第一名,迷你抖音后端

Home Page: https://gugotik.endymx.qzwxsaedc.cn/

License: GNU General Public License v3.0

Go 97.72% Batchfile 0.40% JavaScript 1.00% Shell 0.39% PowerShell 0.21% Dockerfile 0.29%
gugotik tiktok

gugotik's People

Contributors

amazing-compass avatar attack825 avatar dependabot[bot] avatar liaosunny123 avatar maple-pro avatar xfffcccc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gugotik's Issues

[Bug] 依赖 Service 初始化问题

目前的依赖 Service 发现是在 init 里面完成的,但这出现了两个问题:

  • 无法解决循环依赖问题
  • 没有服务重连

解决方案:
在 Sevice Server 创建时添加 gRPC 中间件,在每个 handler 执行前初始化所有依赖的 Sevice Client

  • 如果已连接,不用管;
  • 如果未连接,重连;
  • 重连失败不执行 handler

feat: 新增环境变量POSTGRESQL_SCHEMA

panic: ERROR: no schema has been selected to create in (SQLSTATE 3F000)

需要新增环境变量POSTGRESQL_SCHEMA
gorm.Config增加NamingStrategy的TablePrefix,值从环境变量POSTGRESQL_SCHEMA里取

feat: 评论过滤系统

在 addComment 前添加若干中间件

  • 支持对于不当言论的过滤
  • 支持对于情感倾向不正确的言论过滤
  • 支持对于刷评的过滤(利用指标数据)

通过 ChatGpt/指标采集 来完成,或者使用别的魔法

feat: consul支持鉴权的参数

consul需要支持鉴权的参数
{"Service":"GuGoTik-AuthService","Tied":"","level":"panic","msg":"Rpc GuGoTik-AuthService register consul happens error for: Unexpected response
code: 403 (Permission denied: anonymous token lacks permission 'service:write' on "GuGoTik-AuthService". The anonymous token is used implicitly when a request does not specify a token.)","time":"2023-08-12T19:56:03+08:00"}
panic: (*logrus.Entry) 0xc0001c2000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.