first commit
commit
e3b25286a9
@ -0,0 +1,52 @@
|
||||
### Go template
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
|
||||
################################################################################################################
|
||||
# Add 2020:
|
||||
#
|
||||
# ref:
|
||||
# - https://github.com/caddyserver/caddy/blob/master/.gitignore
|
||||
#
|
||||
################################################################################################################
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
||||
# IDE: Goland
|
||||
.idea/
|
||||
|
||||
# IDE: VS Code
|
||||
.vscode/
|
||||
|
||||
# go mod
|
||||
vendor/
|
||||
|
||||
tmp/
|
||||
*.log
|
||||
|
||||
# *.pb.go
|
||||
# *.pb.micro.go
|
||||
|
||||
# artifacts from pprof tooling
|
||||
*.prof
|
||||
|
||||
# goreleaser artifacts
|
||||
dist/
|
||||
|
||||
|
||||
# env file:
|
||||
.env
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023-present, NoahLan
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,5 @@
|
||||
package dal
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrCacheNotFound = errors.New("cache object not found")
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"common": {
|
||||
"success": "Successfully",
|
||||
"failed": "Failed",
|
||||
"updateSuccess": "Update successfully",
|
||||
"updateFailed": "Update failed",
|
||||
"createSuccess": "Create successfully",
|
||||
"createFailed": "Create failed",
|
||||
"deleteSuccess": "Delete successfully",
|
||||
"deleteFailed": "Delete failed",
|
||||
"objectNotFound": "Object not found",
|
||||
"databaseError": "Database error",
|
||||
"cacheError": "Cache error",
|
||||
"constraintError": "Operation failed: Data conflict",
|
||||
"validationError": "Operation failed: Validation failed",
|
||||
"notSingularError": "Operation failed: Data not unique",
|
||||
"permissionDeny": "User does not have permission to access this interface"
|
||||
},
|
||||
"init": {
|
||||
"alreadyInit": "Already initialized",
|
||||
"initializeIsRunning": "Initialize is running"
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"common": {
|
||||
"success": "成功",
|
||||
"failed": "失败",
|
||||
"updateSuccess": "更新成功",
|
||||
"updateFailed": "更新失败",
|
||||
"createSuccess": "创建成功",
|
||||
"createFailed": "创建失败",
|
||||
"deleteSuccess": "删除成功",
|
||||
"deleteFailed": "删除失败",
|
||||
"objectNotFound": "对象未找到",
|
||||
"databaseError": "数据库错误",
|
||||
"cacheError": "缓存错误",
|
||||
"constraintError": "操作失败: 数据冲突",
|
||||
"validationError": "操作失败: 校验失败",
|
||||
"notSingularError": "操作失败: 数据不唯一",
|
||||
"permissionDeny": "用户无权限访问此接口"
|
||||
},
|
||||
"init": {
|
||||
"alreadyInit": "已初始化,请勿重复进行此操作",
|
||||
"initializeIsRunning": "正在初始化,请稍等"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue