feat: finish adding chat role to user function

This commit is contained in:
RockYang
2023-10-16 06:56:42 +08:00
parent 80e2b34abc
commit d2a8d655c8
5 changed files with 178 additions and 12 deletions

View File

@@ -185,6 +185,7 @@ func main() {
fx.Invoke(func(s *core.AppServer, h *handler.ChatRoleHandler) {
group := s.Engine.Group("/api/role/")
group.GET("list", h.List)
group.POST("add", h.AddRole)
}),
fx.Invoke(func(s *core.AppServer, h *handler.UserHandler) {
group := s.Engine.Group("/api/user/")