8.5 重构文章列表
// GetStringID 获取 ID 的字符串格式
func (a BaseModel) GetStringID() string {
return types.Uint64ToString(a.ID)
}
这里直接跳过了该方法的讲解,导致报错
app/models/article/article.go:14:54: article.GetStringID undefined (type Article has no field or method GetStringID)
推荐文章: