上一页 1 2 3 4 5 6 7 8 9 ··· 83 下一页
摘要: db.AutoMigrate(&Address{}, &Apply{}, &Banner{}, &Booth{}, &Category{}, &Comment{}, &Coupon{}, &Dictionary{}, &Group{}, &Img{}, &Order{}, &Product{}, & 阅读全文
posted @ 2021-05-28 15:08 winyh 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 检查 go.mod 文件 项目名称是否正确 阅读全文
posted @ 2021-05-28 11:39 winyh 阅读(1532) 评论(0) 推荐(0) 编辑
摘要: go mod init projectName go mod init 会报错: go: cannot determine module path for source directory /xxx/xxx/xxx/name (outside GOPATH, module path must be 阅读全文
posted @ 2021-05-28 11:04 winyh 阅读(712) 评论(0) 推荐(1) 编辑
摘要: (1)这个问题只是从纯技术的考虑 (2)没有描述应用场景(3)问题的所需的目标 (4)等等 。想得太仓促,文不对题,见谅。 现在的思路是:(1)尽快完成产品,比较还有进度紧(2)在合适的时候重构或者升级,等有利润和时间合适,可以请人来解决,没必要事事去亲历。(3)凡事多角度去考虑,技术员(编码好), 阅读全文
posted @ 2021-05-27 07:38 winyh 阅读(47) 评论(0) 推荐(0) 编辑
摘要: orm 对象关系映射 o => 结构体 => 模型对应数据库中某张表 r => mysql m => 映射 结构体对应一张数据表,结构体字段对应数据库字段,结构体实例对应一条数据行记录。 1.自动迁移功能 2.表名默认为结构体名称的复数。大驼峰结构会被转化成小写下划线链接。定义结构体过程就是在定义模 阅读全文
posted @ 2021-05-26 08:29 winyh 阅读(255) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 83 下一页