Reorganize directory structures

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2025-08-05 20:06:35 +08:00
parent d666470272
commit adf2a72630
2087 changed files with 637 additions and 603 deletions
+23
View File
@@ -0,0 +1,23 @@
package handler
import (
"honoka-chan/config"
"honoka-chan/pkg/db"
"xorm.io/xorm"
)
var (
SifCdnServer string
AsCdnServer string
ErrorMsg = `{"code":20001,"message":""}`
MainEng *xorm.Engine
UserEng *xorm.Engine
)
func init() {
SifCdnServer = config.Conf.Settings.SifCdnServer
MainEng = db.MainEng
UserEng = db.UserEng
}