From fd5bbd732f1baf0748a9d579eaef32c29674b3d5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 18 May 2024 17:24:14 +0800 Subject: [PATCH] :recycle: Use paperclip to store avatar and more --- .idea/workspace.xml | 21 ++++- go.mod | 54 ++++++----- go.sum | 110 +++++++++++++--------- pkg/database/migrator.go | 4 +- pkg/grpc/auth.go | 4 +- pkg/grpc/client.go | 21 +++++ pkg/models/accounts.go | 12 --- pkg/server/accounts_api.go | 2 +- pkg/server/avatar_api.go | 78 +++++---------- pkg/server/startup.go | 2 - pkg/server/ui/accounts.go | 3 + pkg/server/ui/directory.go | 3 + pkg/services/cleaner.go | 2 +- pkg/views/users/directory/userinfo.gohtml | 4 +- pkg/views/users/me.gohtml | 4 +- pkg/views/users/personalize.gohtml | 61 +----------- settings.toml | 6 +- 17 files changed, 185 insertions(+), 206 deletions(-) create mode 100644 pkg/grpc/client.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 076fae6..7536419 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,11 +4,24 @@