fix: 用户信息更新返回类型与关注建表缺陷

updateMeLogic 更新后重新查询并返回 User 类型,修复 converter 转换
空响应的错误。proto_string 不再丢弃含空格的字符串。userfollows
ent schema 补上 created_at 的 Default(time.Now)。
This commit is contained in:
zetaloop
2026-04-05 17:04:48 +08:00
parent 4625363d5a
commit de32143b6d
5 changed files with 49 additions and 7 deletions
@@ -3,6 +3,8 @@
package userfollows
import (
"time"
"entgo.io/ent/dialect/sql"
)
@@ -39,6 +41,10 @@ func ValidColumn(column string) bool {
return false
}
var (
DefaultCreatedAt func() time.Time
)
// OrderOption defines the ordering options for the UserFollows queries.
type OrderOption func(*sql.Selector)