gorm gen 使用问题

gen在生成关联时候,必须先有model,但是这时候model还没有生成,所以就必须要有一个先后调整的过程,没法一气呵成解决办法:生成模型和生成关联分为两步去做gorm关联经常提升要使用外键定义时候给出关联定义 tag = field.NewGormTag() tag.Set("references", "ID") tag.Set("...

继续阅读 »

python3 报错解决方法

No module named 'Crypto'pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pycryptodomeNo module named 'PIL'pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pillowNo module named 'numpy...

继续阅读 »

fedora 2023 使用记录

2023-06-21今日又重新安装了fedora38,因为看到所用的mt7921k驱动更新了很多次使用ustc大学的镜像dnf镜像https://mirrors.ustc.edu.cn/help/fedora.htmlrpmfusion镜像https://mirrors.ustc.edu.cn/help/rpmfusion.html问题默认输入法位置偏差很大最大化隐藏标题栏kwin脚本 Hi...

继续阅读 »