fix: 调整用户登出路由权限,优化登出逻辑注释并移除无用打印

This commit is contained in:
2025-07-28 08:52:11 +08:00
parent ca8e1f92bd
commit 06e270545a
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package model
import (
"fmt"
"github.com/snowykami/neo-blog/internal/dto"
"github.com/snowykami/neo-blog/pkg/constant"
"gorm.io/gorm"
@ -47,7 +46,6 @@ func (p *Post) AfterUpdate(tx *gorm.DB) (err error) {
}
func (p *Post) ToDto() *dto.PostDto {
fmt.Println("User", p.User)
return &dto.PostDto{
ID: p.ID,
UserID: p.UserID,