fucktx
fucktx
如题: goctl 生成带缓存的时候,怎么批量更新,是一条条for循环更新,还是先批量查出来id集合,是更新完在删除id集合?
Add the old and new entryids that get the entryID and re-register the function in PeriodicTaskManager: For example, if I manage these tasks in mysql and the task is registered,...
楼主好: 我看文档里面 processes: 整数,指定线程数。默认为 None, 表示使用全部线程。 代码如下,定义了一个全局的bwm变量,然后打水印和提取水印都会用到这个bwm ``` bwm = WaterMark(password_img=1, password_wm=1) def embeb_watermark(src, dst, hash_id): bwm.read_img(src) bwm.read_wm(hash_id, mode='str') bwmembed(dst) # 输出a len_wm = len(bwm.wm_bit) print('Put down the length of...
**Problem** It is not possible to configure the export import field at this time, the default is all files, **Solution** Now the direct configuration import_fields and export_fields can be exported...
 重新拉去的,一直是1.4.0,不是1.4.1
i hope forbidden ( change, delete,add) permission admin.py: ```class JobExecutionAdmin(DjangoJobExecutionAdmin): def has_change_permission(self, request, obj=None): return False def has_delete_permission(self, request, obj=None): return False ``` extended django-apscheduler/admin.py DjangoJobExecutionAdmin,but not effect,alse i18n also...
goctl : 1.6.4 我拼接批量插入的代码 sql部分: ``` INSERT INTO `document_accounts` (`id`,`tenant_id`,`app_id`,`platform_id`,`associate_account_id`,`name`,`avatar`,`intro`,`code`,`biz`,`original_count`,`article_count`,`joined_time`,`sort`,`open_status`,`deleted_status`,`version`,`deleted_time`,`created_time`,`updated_time`,`created_by`,`updated_by`,`deleted_by`,`note`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,...
最新的模版生成的model层代码 多了一个model.tpl,model-new.tpl和model-gen.tpl 那自定义方法其实就在xxxmodel.go里面自定义 希望这个里面导出的类型和find里面一样多 ``` Execute(map[string]any{ "withCache": withCache, "upperStartCamelObject": camel, "lowerStartCamelObject": stringx.From(camel).Untitle(), "originalPrimaryKey": wrapWithRawString(table.PrimaryKey.Name.Source(), postgreSql), "lowerStartCamelPrimaryKey": util.EscapeGolangKeyword(stringx.From(table.PrimaryKey.Name.ToCamel()).Untitle()), "dataType": table.PrimaryKey.DataType, "cacheKey": table.PrimaryCacheKey.KeyExpression, "cacheKeyVariable": table.PrimaryCacheKey.KeyLeft, "postgreSql": postgreSql, "data": table, }) 这样所有自定义的方法都在一个模版里面可以修改,不用修改其他的部分模版,比较好维护
### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing...