Refactor backend APIs to RESTful route patterns.

Align group and conversation handlers/services with path-based endpoints, and unify response/service error handling for related modules.

Made-with: Cursor
This commit is contained in:
2026-03-10 20:52:50 +08:00
parent 86ef150fec
commit 21293644b8
10 changed files with 217 additions and 189 deletions

View File

@@ -9,8 +9,8 @@ import (
)
var (
ErrStickerAlreadyExists = errors.New("sticker already exists")
ErrInvalidStickerURL = errors.New("invalid sticker url")
ErrStickerAlreadyExists = &ServiceError{Code: 400, Message: "sticker already exists"}
ErrInvalidStickerURL = &ServiceError{Code: 400, Message: "invalid sticker url"}
)
// StickerService 自定义表情服务接口