opt: adjust styles for ItemList component, cut string for chat role's hello message

This commit is contained in:
RockYang
2023-10-16 10:46:10 +08:00
parent d2a8d655c8
commit a80d01209c
14 changed files with 221 additions and 139 deletions

View File

@@ -78,8 +78,8 @@ func (h *ChatRoleHandler) List(c *gin.Context) {
resp.SUCCESS(c, roleVos)
}
// AddRole 为用户添加角色
func (h *ChatRoleHandler) AddRole(c *gin.Context) {
// UpdateRole 更新用户聊天角色
func (h *ChatRoleHandler) UpdateRole(c *gin.Context) {
user, err := utils.GetLoginUser(c, h.db)
if err != nil {
resp.NotAuth(c)