放风喽
放风喽
ParentId string `gorm:"type:varchar(255),size:255"` 我指定类型是varchar,但是迁移的时候,还是longtext。 即使我手动建表,它还是想改成longtext。 ALTER TABLE `字典模块` MODIFY COLUMN `parent_id` longtext
# Bug 我想根据前端传递的字符串进行排序,结果文档里只能使用模型的字段进行排序。 我想用Model[key]的方式获取字段,结果报错:"type 'DictType' is not subscriptable" orderObject.order = “createTime” sort=DictType[orderObject.order] "type 'DictType' is not subscriptable" ### Current Behavior ... _Steps to reproduce the bug_ ... ### Expected behavior...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug 我封装了一个类,用来获取json数据,然后将这个类注入到app中。结果在获取的json是None。 I encapsulated a class to retrieve JSON data and...
我想知道AIOEngine数据库连接的使用的最佳方式是什么, 是在收到每个请求的时候创建一个新的连接, 还是一直复用同一个数据库连接?? 你们都是怎么使用的??
启动报错
### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug ``` File "F:\pythonproject\sanicResolve2\.venv\Lib\site-packages\sanic\mixins\startup.py", line 1180, in serve while cls._get_process_states(worker_state): ^^^^^^^^^^^^...