hjwblog.com
hjwblog.com
发一下model结构体,是否用了自定义time类型
调用create接口的代码也发一下
在启动的时候,扫描所有带cron的dag,然后启动协程去执行cron,那如果重启的时候刚好有一个任务到时间了,重启完了刚好又过了,这种怎么解决呢。
@ShiningRush 有一个通用的 http action 吗? 那请求的结果是放在哪里呢?通过参数传入一个 key,根据这个key 来存放 responce 吗?
这里 action 的注册用法是在服务启动的时候注册,不是通过接口注册的。
要注册得有一个实现了接口的结构体吧,通过接口注册怎么关联这个结构体,新增action 得改代码吧?
@ShiningRush
In actual projects, multiple data sources must be used concurrently at the same time, so the value of global variables cannot be switched through one method. We can provide API...