init
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* linguist-language=GO
|
||||
19
.gitignore
vendored
Normal file
19
.gitignore
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
.buildpath
|
||||
.hgignore.swp
|
||||
.project
|
||||
.orig
|
||||
.swp
|
||||
.idea/
|
||||
.settings/
|
||||
.vscode/
|
||||
bin/
|
||||
**/.DS_Store
|
||||
gf
|
||||
main
|
||||
main.exe
|
||||
output/
|
||||
manifest/output/
|
||||
temp/
|
||||
temp.yaml
|
||||
bin
|
||||
**/config/config.yaml
|
||||
7
Makefile
Normal file
7
Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
ROOT_DIR = $(shell pwd)
|
||||
NAMESPACE = "default"
|
||||
DEPLOY_NAME = "template-single"
|
||||
DOCKER_NAME = "template-single"
|
||||
|
||||
include ./hack/hack-cli.mk
|
||||
include ./hack/hack.mk
|
||||
4
README.MD
Normal file
4
README.MD
Normal file
@@ -0,0 +1,4 @@
|
||||
# GoFrame Template For SingleRepo
|
||||
|
||||
Quick Start:
|
||||
- https://goframe.org/quick
|
||||
15
api/hello/hello.go
Normal file
15
api/hello/hello.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package hello
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"epic/api/hello/v1"
|
||||
)
|
||||
|
||||
type IHelloV1 interface {
|
||||
Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error)
|
||||
}
|
||||
12
api/hello/v1/hello.go
Normal file
12
api/hello/v1/hello.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type HelloReq struct {
|
||||
g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
|
||||
}
|
||||
type HelloRes struct {
|
||||
g.Meta `mime:"text/html" example:"string"`
|
||||
}
|
||||
12
api/hello/v1/hero.go
Normal file
12
api/hello/v1/hero.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type HeroReq struct {
|
||||
g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
|
||||
}
|
||||
type HeroRes struct {
|
||||
g.Meta `mime:"text/html" example:"string"`
|
||||
}
|
||||
35
go.mod
Normal file
35
go.mod
Normal file
@@ -0,0 +1,35 @@
|
||||
module epic
|
||||
|
||||
go 1.22
|
||||
|
||||
toolchain go1.24.4
|
||||
|
||||
require github.com/gogf/gf/v2 v2.9.0
|
||||
|
||||
require (
|
||||
github.com/BurntSushi/toml v1.4.0 // indirect
|
||||
github.com/clbanning/mxj/v2 v2.7.0 // indirect
|
||||
github.com/emirpasic/gods v1.18.1 // indirect
|
||||
github.com/fatih/color v1.18.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/gorilla/websocket v1.5.3 // indirect
|
||||
github.com/grokify/html-strip-tags-go v0.1.0 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/magiconair/properties v1.8.9 // indirect
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.16 // indirect
|
||||
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
go.opentelemetry.io/otel v1.32.0 // indirect
|
||||
go.opentelemetry.io/otel/metric v1.32.0 // indirect
|
||||
go.opentelemetry.io/otel/sdk v1.32.0 // indirect
|
||||
go.opentelemetry.io/otel/trace v1.32.0 // indirect
|
||||
golang.org/x/net v0.32.0 // indirect
|
||||
golang.org/x/sys v0.28.0 // indirect
|
||||
golang.org/x/text v0.21.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
74
go.sum
Normal file
74
go.sum
Normal file
@@ -0,0 +1,74 @@
|
||||
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
||||
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||
github.com/clbanning/mxj/v2 v2.7.0 h1:WA/La7UGCanFe5NpHF0Q3DNtnCsVoxbPKuyBNHWRyME=
|
||||
github.com/clbanning/mxj/v2 v2.7.0/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
|
||||
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
|
||||
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
|
||||
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
|
||||
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
|
||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/gogf/gf/v2 v2.9.0 h1:semN5Q5qGjDQEv4620VzxcJzJlSD07gmyJ9Sy9zfbHk=
|
||||
github.com/gogf/gf/v2 v2.9.0/go.mod h1:sWGQw+pLILtuHmbOxoe0D+0DdaXxbleT57axOLH2vKI=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
|
||||
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/grokify/html-strip-tags-go v0.1.0 h1:03UrQLjAny8xci+R+qjCce/MYnpNXCtgzltlQbOBae4=
|
||||
github.com/grokify/html-strip-tags-go v0.1.0/go.mod h1:ZdzgfHEzAfz9X6Xe5eBLVblWIxXfYSQ40S/VKrAOGpc=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/magiconair/properties v1.8.9 h1:nWcCbLq1N2v/cpNsy5WvQ37Fb+YElfq20WJ/a8RkpQM=
|
||||
github.com/magiconair/properties v1.8.9/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
|
||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
|
||||
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
|
||||
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
|
||||
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U=
|
||||
go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg=
|
||||
go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M=
|
||||
go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8=
|
||||
go.opentelemetry.io/otel/sdk v1.32.0 h1:RNxepc9vK59A8XsgZQouW8ue8Gkb4jpWtJm9ge5lEG4=
|
||||
go.opentelemetry.io/otel/sdk v1.32.0/go.mod h1:LqgegDBjKMmb2GC6/PrTnteJG39I8/vJCAP9LlJXEjU=
|
||||
go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM=
|
||||
go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8=
|
||||
golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
|
||||
golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
|
||||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
|
||||
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
13
hack/config.yaml
Normal file
13
hack/config.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
# CLI tool, only in development environment.
|
||||
# https://goframe.org/docs/cli
|
||||
gfcli:
|
||||
gen:
|
||||
dao:
|
||||
- link: "mysql:root:hu123456@tcp(193.112.151.199:3306)/wow"
|
||||
descriptionTag: true
|
||||
|
||||
docker:
|
||||
build: "-a amd64 -s linux -p temp -ew"
|
||||
tagPrefixes:
|
||||
- my.image.pub/my-app
|
||||
20
hack/hack-cli.mk
Normal file
20
hack/hack-cli.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
# Install/Update to the latest CLI tool.
|
||||
.PHONY: cli
|
||||
cli:
|
||||
@set -e; \
|
||||
wget -O gf \
|
||||
https://github.com/gogf/gf/releases/latest/download/gf_$(shell go env GOOS)_$(shell go env GOARCH) && \
|
||||
chmod +x gf && \
|
||||
./gf install -y && \
|
||||
rm ./gf
|
||||
|
||||
|
||||
# Check and install CLI tool.
|
||||
.PHONY: cli.install
|
||||
cli.install:
|
||||
@set -e; \
|
||||
gf -v > /dev/null 2>&1 || if [[ "$?" -ne "0" ]]; then \
|
||||
echo "GoFame CLI is not installed, start proceeding auto installation..."; \
|
||||
make cli; \
|
||||
fi;
|
||||
75
hack/hack.mk
Normal file
75
hack/hack.mk
Normal file
@@ -0,0 +1,75 @@
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
# Update GoFrame and its CLI to latest stable version.
|
||||
.PHONY: up
|
||||
up: cli.install
|
||||
@gf up -a
|
||||
|
||||
# Build binary using configuration from hack/config.yaml.
|
||||
.PHONY: build
|
||||
build: cli.install
|
||||
@gf build -ew
|
||||
|
||||
# Parse api and generate controller/sdk.
|
||||
.PHONY: ctrl
|
||||
ctrl: cli.install
|
||||
@gf gen ctrl
|
||||
|
||||
# Generate Go files for DAO/DO/Entity.
|
||||
.PHONY: dao
|
||||
dao: cli.install
|
||||
@gf gen dao
|
||||
|
||||
# Parse current project go files and generate enums go file.
|
||||
.PHONY: enums
|
||||
enums: cli.install
|
||||
@gf gen enums
|
||||
|
||||
# Generate Go files for Service.
|
||||
.PHONY: service
|
||||
service: cli.install
|
||||
@gf gen service
|
||||
|
||||
|
||||
# Build docker image.
|
||||
.PHONY: image
|
||||
image: cli.install
|
||||
$(eval _TAG = $(shell git rev-parse --short HEAD))
|
||||
ifneq (, $(shell git status --porcelain 2>/dev/null))
|
||||
$(eval _TAG = $(_TAG).dirty)
|
||||
endif
|
||||
$(eval _TAG = $(if ${TAG}, ${TAG}, $(_TAG)))
|
||||
$(eval _PUSH = $(if ${PUSH}, ${PUSH}, ))
|
||||
@gf docker ${_PUSH} -tn $(DOCKER_NAME):${_TAG};
|
||||
|
||||
|
||||
# Build docker image and automatically push to docker repo.
|
||||
.PHONY: image.push
|
||||
image.push: cli.install
|
||||
@make image PUSH=-p;
|
||||
|
||||
|
||||
# Deploy image and yaml to current kubectl environment.
|
||||
.PHONY: deploy
|
||||
deploy: cli.install
|
||||
$(eval _TAG = $(if ${TAG}, ${TAG}, develop))
|
||||
|
||||
@set -e; \
|
||||
mkdir -p $(ROOT_DIR)/temp/kustomize;\
|
||||
cd $(ROOT_DIR)/manifest/deploy/kustomize/overlays/${_ENV};\
|
||||
kustomize build > $(ROOT_DIR)/temp/kustomize.yaml;\
|
||||
kubectl apply -f $(ROOT_DIR)/temp/kustomize.yaml; \
|
||||
if [ $(DEPLOY_NAME) != "" ]; then \
|
||||
kubectl patch -n $(NAMESPACE) deployment/$(DEPLOY_NAME) -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"$(shell date +%s)\"}}}}}"; \
|
||||
fi;
|
||||
|
||||
|
||||
# Parsing protobuf files and generating go files.
|
||||
.PHONY: pb
|
||||
pb: cli.install
|
||||
@gf gen pb
|
||||
|
||||
# Generate protobuf files for database tables.
|
||||
.PHONY: pbentity
|
||||
pbentity: cli.install
|
||||
@gf gen pbentity
|
||||
30
internal/cmd/cmd.go
Normal file
30
internal/cmd/cmd.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
"github.com/gogf/gf/v2/os/gcmd"
|
||||
|
||||
"epic/internal/controller/hello"
|
||||
)
|
||||
|
||||
var (
|
||||
Main = gcmd.Command{
|
||||
Name: "main",
|
||||
Usage: "main",
|
||||
Brief: "start http server",
|
||||
Func: func(ctx context.Context, parser *gcmd.Parser) (err error) {
|
||||
s := g.Server()
|
||||
s.Group("/", func(group *ghttp.RouterGroup) {
|
||||
group.Middleware(ghttp.MiddlewareHandlerResponse)
|
||||
group.Bind(
|
||||
hello.NewV1(),
|
||||
)
|
||||
})
|
||||
s.Run()
|
||||
return nil
|
||||
},
|
||||
}
|
||||
)
|
||||
1
internal/consts/consts.go
Normal file
1
internal/consts/consts.go
Normal file
@@ -0,0 +1 @@
|
||||
package consts
|
||||
5
internal/controller/hello/hello.go
Normal file
5
internal/controller/hello/hello.go
Normal file
@@ -0,0 +1,5 @@
|
||||
// =================================================================================
|
||||
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
|
||||
// =================================================================================
|
||||
|
||||
package hello
|
||||
16
internal/controller/hello/hello_new.go
Normal file
16
internal/controller/hello/hello_new.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package hello
|
||||
|
||||
import (
|
||||
"epic/api/hello"
|
||||
)
|
||||
|
||||
type ControllerV1 struct{}
|
||||
|
||||
func NewV1() hello.IHelloV1 {
|
||||
return &ControllerV1{}
|
||||
}
|
||||
|
||||
13
internal/controller/hello/hello_v1_hello.go
Normal file
13
internal/controller/hello/hello_v1_hello.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package hello
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
"epic/api/hello/v1"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
|
||||
g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
|
||||
return
|
||||
}
|
||||
0
internal/dao/.gitkeep
Normal file
0
internal/dao/.gitkeep
Normal file
22
internal/dao/epic_artifact_info.go
Normal file
22
internal/dao/epic_artifact_info.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicArtifactInfoDao is the data access object for the table epic_artifact_info.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicArtifactInfoDao struct {
|
||||
*internal.EpicArtifactInfoDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicArtifactInfo is a globally accessible object for table epic_artifact_info operations.
|
||||
EpicArtifactInfo = epicArtifactInfoDao{internal.NewEpicArtifactInfoDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/epic_gvg_attack_teams.go
Normal file
22
internal/dao/epic_gvg_attack_teams.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicGvgAttackTeamsDao is the data access object for the table epic_gvg_attack_teams.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicGvgAttackTeamsDao struct {
|
||||
*internal.EpicGvgAttackTeamsDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicGvgAttackTeams is a globally accessible object for table epic_gvg_attack_teams operations.
|
||||
EpicGvgAttackTeams = epicGvgAttackTeamsDao{internal.NewEpicGvgAttackTeamsDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/epic_gvg_defense_attack_mapping.go
Normal file
22
internal/dao/epic_gvg_defense_attack_mapping.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicGvgDefenseAttackMappingDao is the data access object for the table epic_gvg_defense_attack_mapping.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicGvgDefenseAttackMappingDao struct {
|
||||
*internal.EpicGvgDefenseAttackMappingDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicGvgDefenseAttackMapping is a globally accessible object for table epic_gvg_defense_attack_mapping operations.
|
||||
EpicGvgDefenseAttackMapping = epicGvgDefenseAttackMappingDao{internal.NewEpicGvgDefenseAttackMappingDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/epic_gvg_defense_teams.go
Normal file
22
internal/dao/epic_gvg_defense_teams.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicGvgDefenseTeamsDao is the data access object for the table epic_gvg_defense_teams.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicGvgDefenseTeamsDao struct {
|
||||
*internal.EpicGvgDefenseTeamsDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicGvgDefenseTeams is a globally accessible object for table epic_gvg_defense_teams operations.
|
||||
EpicGvgDefenseTeams = epicGvgDefenseTeamsDao{internal.NewEpicGvgDefenseTeamsDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/epic_hero_info.go
Normal file
22
internal/dao/epic_hero_info.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicHeroInfoDao is the data access object for the table epic_hero_info.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicHeroInfoDao struct {
|
||||
*internal.EpicHeroInfoDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicHeroInfo is a globally accessible object for table epic_hero_info operations.
|
||||
EpicHeroInfo = epicHeroInfoDao{internal.NewEpicHeroInfoDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/epic_hero_user_build.go
Normal file
22
internal/dao/epic_hero_user_build.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// epicHeroUserBuildDao is the data access object for the table epic_hero_user_build.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type epicHeroUserBuildDao struct {
|
||||
*internal.EpicHeroUserBuildDao
|
||||
}
|
||||
|
||||
var (
|
||||
// EpicHeroUserBuild is a globally accessible object for table epic_hero_user_build operations.
|
||||
EpicHeroUserBuild = epicHeroUserBuildDao{internal.NewEpicHeroUserBuildDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/fribble_hero_set.go
Normal file
22
internal/dao/fribble_hero_set.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// fribbleHeroSetDao is the data access object for the table fribble_hero_set.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type fribbleHeroSetDao struct {
|
||||
*internal.FribbleHeroSetDao
|
||||
}
|
||||
|
||||
var (
|
||||
// FribbleHeroSet is a globally accessible object for table fribble_hero_set operations.
|
||||
FribbleHeroSet = fribbleHeroSetDao{internal.NewFribbleHeroSetDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/gear_set_info.go
Normal file
22
internal/dao/gear_set_info.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// gearSetInfoDao is the data access object for the table gear_set_info.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type gearSetInfoDao struct {
|
||||
*internal.GearSetInfoDao
|
||||
}
|
||||
|
||||
var (
|
||||
// GearSetInfo is a globally accessible object for table gear_set_info operations.
|
||||
GearSetInfo = gearSetInfoDao{internal.NewGearSetInfoDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_api_access_log.go
Normal file
22
internal/dao/infra_api_access_log.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraApiAccessLogDao is the data access object for the table infra_api_access_log.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraApiAccessLogDao struct {
|
||||
*internal.InfraApiAccessLogDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraApiAccessLog is a globally accessible object for table infra_api_access_log operations.
|
||||
InfraApiAccessLog = infraApiAccessLogDao{internal.NewInfraApiAccessLogDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_api_error_log.go
Normal file
22
internal/dao/infra_api_error_log.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraApiErrorLogDao is the data access object for the table infra_api_error_log.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraApiErrorLogDao struct {
|
||||
*internal.InfraApiErrorLogDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraApiErrorLog is a globally accessible object for table infra_api_error_log operations.
|
||||
InfraApiErrorLog = infraApiErrorLogDao{internal.NewInfraApiErrorLogDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_codegen_column.go
Normal file
22
internal/dao/infra_codegen_column.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraCodegenColumnDao is the data access object for the table infra_codegen_column.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraCodegenColumnDao struct {
|
||||
*internal.InfraCodegenColumnDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraCodegenColumn is a globally accessible object for table infra_codegen_column operations.
|
||||
InfraCodegenColumn = infraCodegenColumnDao{internal.NewInfraCodegenColumnDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_codegen_table.go
Normal file
22
internal/dao/infra_codegen_table.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraCodegenTableDao is the data access object for the table infra_codegen_table.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraCodegenTableDao struct {
|
||||
*internal.InfraCodegenTableDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraCodegenTable is a globally accessible object for table infra_codegen_table operations.
|
||||
InfraCodegenTable = infraCodegenTableDao{internal.NewInfraCodegenTableDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_config.go
Normal file
22
internal/dao/infra_config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraConfigDao is the data access object for the table infra_config.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraConfigDao struct {
|
||||
*internal.InfraConfigDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraConfig is a globally accessible object for table infra_config operations.
|
||||
InfraConfig = infraConfigDao{internal.NewInfraConfigDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_data_source_config.go
Normal file
22
internal/dao/infra_data_source_config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraDataSourceConfigDao is the data access object for the table infra_data_source_config.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraDataSourceConfigDao struct {
|
||||
*internal.InfraDataSourceConfigDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraDataSourceConfig is a globally accessible object for table infra_data_source_config operations.
|
||||
InfraDataSourceConfig = infraDataSourceConfigDao{internal.NewInfraDataSourceConfigDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_file.go
Normal file
22
internal/dao/infra_file.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraFileDao is the data access object for the table infra_file.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraFileDao struct {
|
||||
*internal.InfraFileDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraFile is a globally accessible object for table infra_file operations.
|
||||
InfraFile = infraFileDao{internal.NewInfraFileDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_file_config.go
Normal file
22
internal/dao/infra_file_config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraFileConfigDao is the data access object for the table infra_file_config.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraFileConfigDao struct {
|
||||
*internal.InfraFileConfigDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraFileConfig is a globally accessible object for table infra_file_config operations.
|
||||
InfraFileConfig = infraFileConfigDao{internal.NewInfraFileConfigDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_file_content.go
Normal file
22
internal/dao/infra_file_content.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraFileContentDao is the data access object for the table infra_file_content.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraFileContentDao struct {
|
||||
*internal.InfraFileContentDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraFileContent is a globally accessible object for table infra_file_content operations.
|
||||
InfraFileContent = infraFileContentDao{internal.NewInfraFileContentDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_job.go
Normal file
22
internal/dao/infra_job.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraJobDao is the data access object for the table infra_job.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraJobDao struct {
|
||||
*internal.InfraJobDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraJob is a globally accessible object for table infra_job operations.
|
||||
InfraJob = infraJobDao{internal.NewInfraJobDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
22
internal/dao/infra_job_log.go
Normal file
22
internal/dao/infra_job_log.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
|
||||
// =================================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"epic/internal/dao/internal"
|
||||
)
|
||||
|
||||
// infraJobLogDao is the data access object for the table infra_job_log.
|
||||
// You can define custom methods on it to extend its functionality as needed.
|
||||
type infraJobLogDao struct {
|
||||
*internal.InfraJobLogDao
|
||||
}
|
||||
|
||||
var (
|
||||
// InfraJobLog is a globally accessible object for table infra_job_log operations.
|
||||
InfraJobLog = infraJobLogDao{internal.NewInfraJobLogDao()}
|
||||
)
|
||||
|
||||
// Add your custom methods and functionality below.
|
||||
107
internal/dao/internal/epic_artifact_info.go
Normal file
107
internal/dao/internal/epic_artifact_info.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicArtifactInfoDao is the data access object for the table epic_artifact_info.
|
||||
type EpicArtifactInfoDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicArtifactInfoColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicArtifactInfoColumns defines and stores column names for the table epic_artifact_info.
|
||||
type EpicArtifactInfoColumns struct {
|
||||
Id string // 文件编号
|
||||
ArtifactName string // 配置编号
|
||||
ArtifactCode string // 文件名
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
StatsHealth string // 文件路径
|
||||
StatsAttack string // 文件路径
|
||||
StatsDefense string // 文件路径
|
||||
Rarity string // 文件路径
|
||||
Role string // 文件路径
|
||||
ArtifactNameEn string // 配置编号
|
||||
ImageUrl string // 图片地址
|
||||
}
|
||||
|
||||
// epicArtifactInfoColumns holds the columns for the table epic_artifact_info.
|
||||
var epicArtifactInfoColumns = EpicArtifactInfoColumns{
|
||||
Id: "id",
|
||||
ArtifactName: "artifact_name",
|
||||
ArtifactCode: "artifact_code",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
StatsHealth: "stats_health",
|
||||
StatsAttack: "stats_attack",
|
||||
StatsDefense: "stats_defense",
|
||||
Rarity: "rarity",
|
||||
Role: "role",
|
||||
ArtifactNameEn: "artifact_name_en",
|
||||
ImageUrl: "image_url",
|
||||
}
|
||||
|
||||
// NewEpicArtifactInfoDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicArtifactInfoDao(handlers ...gdb.ModelHandler) *EpicArtifactInfoDao {
|
||||
return &EpicArtifactInfoDao{
|
||||
group: "default",
|
||||
table: "epic_artifact_info",
|
||||
columns: epicArtifactInfoColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicArtifactInfoDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicArtifactInfoDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicArtifactInfoDao) Columns() EpicArtifactInfoColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicArtifactInfoDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicArtifactInfoDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicArtifactInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
91
internal/dao/internal/epic_gvg_attack_teams.go
Normal file
91
internal/dao/internal/epic_gvg_attack_teams.go
Normal file
@@ -0,0 +1,91 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicGvgAttackTeamsDao is the data access object for the table epic_gvg_attack_teams.
|
||||
type EpicGvgAttackTeamsDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicGvgAttackTeamsColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicGvgAttackTeamsColumns defines and stores column names for the table epic_gvg_attack_teams.
|
||||
type EpicGvgAttackTeamsColumns struct {
|
||||
Id string // id
|
||||
AttackHeroes string // 进攻角色
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// epicGvgAttackTeamsColumns holds the columns for the table epic_gvg_attack_teams.
|
||||
var epicGvgAttackTeamsColumns = EpicGvgAttackTeamsColumns{
|
||||
Id: "id",
|
||||
AttackHeroes: "attack_heroes",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewEpicGvgAttackTeamsDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicGvgAttackTeamsDao(handlers ...gdb.ModelHandler) *EpicGvgAttackTeamsDao {
|
||||
return &EpicGvgAttackTeamsDao{
|
||||
group: "default",
|
||||
table: "epic_gvg_attack_teams",
|
||||
columns: epicGvgAttackTeamsColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicGvgAttackTeamsDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicGvgAttackTeamsDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicGvgAttackTeamsDao) Columns() EpicGvgAttackTeamsColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicGvgAttackTeamsDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicGvgAttackTeamsDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicGvgAttackTeamsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/epic_gvg_defense_attack_mapping.go
Normal file
103
internal/dao/internal/epic_gvg_defense_attack_mapping.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicGvgDefenseAttackMappingDao is the data access object for the table epic_gvg_defense_attack_mapping.
|
||||
type EpicGvgDefenseAttackMappingDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicGvgDefenseAttackMappingColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicGvgDefenseAttackMappingColumns defines and stores column names for the table epic_gvg_defense_attack_mapping.
|
||||
type EpicGvgDefenseAttackMappingColumns struct {
|
||||
Id string // id
|
||||
DefenseId string // 防守阵容
|
||||
AttackId string // 进攻阵容
|
||||
EquipmentInfo string //
|
||||
Artifacts string //
|
||||
BattleStrategy string //
|
||||
Prerequisites string //
|
||||
ImportantNotes string //
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// epicGvgDefenseAttackMappingColumns holds the columns for the table epic_gvg_defense_attack_mapping.
|
||||
var epicGvgDefenseAttackMappingColumns = EpicGvgDefenseAttackMappingColumns{
|
||||
Id: "id",
|
||||
DefenseId: "defense_id",
|
||||
AttackId: "attack_id",
|
||||
EquipmentInfo: "equipment_info",
|
||||
Artifacts: "artifacts",
|
||||
BattleStrategy: "battle_strategy",
|
||||
Prerequisites: "prerequisites",
|
||||
ImportantNotes: "important_notes",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewEpicGvgDefenseAttackMappingDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicGvgDefenseAttackMappingDao(handlers ...gdb.ModelHandler) *EpicGvgDefenseAttackMappingDao {
|
||||
return &EpicGvgDefenseAttackMappingDao{
|
||||
group: "default",
|
||||
table: "epic_gvg_defense_attack_mapping",
|
||||
columns: epicGvgDefenseAttackMappingColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) Columns() EpicGvgDefenseAttackMappingColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicGvgDefenseAttackMappingDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
91
internal/dao/internal/epic_gvg_defense_teams.go
Normal file
91
internal/dao/internal/epic_gvg_defense_teams.go
Normal file
@@ -0,0 +1,91 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicGvgDefenseTeamsDao is the data access object for the table epic_gvg_defense_teams.
|
||||
type EpicGvgDefenseTeamsDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicGvgDefenseTeamsColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicGvgDefenseTeamsColumns defines and stores column names for the table epic_gvg_defense_teams.
|
||||
type EpicGvgDefenseTeamsColumns struct {
|
||||
Id string // id
|
||||
DefenseHeroes string // 防守角色
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// epicGvgDefenseTeamsColumns holds the columns for the table epic_gvg_defense_teams.
|
||||
var epicGvgDefenseTeamsColumns = EpicGvgDefenseTeamsColumns{
|
||||
Id: "id",
|
||||
DefenseHeroes: "defense_heroes",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewEpicGvgDefenseTeamsDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicGvgDefenseTeamsDao(handlers ...gdb.ModelHandler) *EpicGvgDefenseTeamsDao {
|
||||
return &EpicGvgDefenseTeamsDao{
|
||||
group: "default",
|
||||
table: "epic_gvg_defense_teams",
|
||||
columns: epicGvgDefenseTeamsColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicGvgDefenseTeamsDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicGvgDefenseTeamsDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicGvgDefenseTeamsDao) Columns() EpicGvgDefenseTeamsColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicGvgDefenseTeamsDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicGvgDefenseTeamsDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicGvgDefenseTeamsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
109
internal/dao/internal/epic_hero_info.go
Normal file
109
internal/dao/internal/epic_hero_info.go
Normal file
@@ -0,0 +1,109 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicHeroInfoDao is the data access object for the table epic_hero_info.
|
||||
type EpicHeroInfoDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicHeroInfoColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicHeroInfoColumns defines and stores column names for the table epic_hero_info.
|
||||
type EpicHeroInfoColumns struct {
|
||||
Id string // 文件编号
|
||||
HeroName string // 配置编号
|
||||
HeroCode string // 文件名
|
||||
HeroAttrLv60 string // 文件路径
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
NickName string // 配置编号
|
||||
Rarity string // 配置编号
|
||||
Role string // 配置编号
|
||||
Zodiac string // 配置编号
|
||||
HeadImgUrl string // 配置编号
|
||||
Attribute string // 配置编号
|
||||
Remark string // 配置编号
|
||||
}
|
||||
|
||||
// epicHeroInfoColumns holds the columns for the table epic_hero_info.
|
||||
var epicHeroInfoColumns = EpicHeroInfoColumns{
|
||||
Id: "id",
|
||||
HeroName: "hero_name",
|
||||
HeroCode: "hero_code",
|
||||
HeroAttrLv60: "hero_attr_lv60",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
NickName: "nick_name",
|
||||
Rarity: "rarity",
|
||||
Role: "role",
|
||||
Zodiac: "zodiac",
|
||||
HeadImgUrl: "head_img_url",
|
||||
Attribute: "attribute",
|
||||
Remark: "remark",
|
||||
}
|
||||
|
||||
// NewEpicHeroInfoDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicHeroInfoDao(handlers ...gdb.ModelHandler) *EpicHeroInfoDao {
|
||||
return &EpicHeroInfoDao{
|
||||
group: "default",
|
||||
table: "epic_hero_info",
|
||||
columns: epicHeroInfoColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicHeroInfoDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicHeroInfoDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicHeroInfoDao) Columns() EpicHeroInfoColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicHeroInfoDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicHeroInfoDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicHeroInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/dao/internal/epic_hero_user_build.go
Normal file
99
internal/dao/internal/epic_hero_user_build.go
Normal file
@@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// EpicHeroUserBuildDao is the data access object for the table epic_hero_user_build.
|
||||
type EpicHeroUserBuildDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns EpicHeroUserBuildColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// EpicHeroUserBuildColumns defines and stores column names for the table epic_hero_user_build.
|
||||
type EpicHeroUserBuildColumns struct {
|
||||
Id string // 文件编号
|
||||
ArtifactCode string // 配置编号
|
||||
HeroCode string // 文件名
|
||||
HeroHeathBuild string // 文件路径
|
||||
HeroAttackBuild string // 文件路径
|
||||
HeroDefBuild string // 文件路径
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// epicHeroUserBuildColumns holds the columns for the table epic_hero_user_build.
|
||||
var epicHeroUserBuildColumns = EpicHeroUserBuildColumns{
|
||||
Id: "id",
|
||||
ArtifactCode: "artifact_code",
|
||||
HeroCode: "hero_code",
|
||||
HeroHeathBuild: "hero_heath_build",
|
||||
HeroAttackBuild: "hero_attack_build",
|
||||
HeroDefBuild: "hero_def_build",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewEpicHeroUserBuildDao creates and returns a new DAO object for table data access.
|
||||
func NewEpicHeroUserBuildDao(handlers ...gdb.ModelHandler) *EpicHeroUserBuildDao {
|
||||
return &EpicHeroUserBuildDao{
|
||||
group: "default",
|
||||
table: "epic_hero_user_build",
|
||||
columns: epicHeroUserBuildColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *EpicHeroUserBuildDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *EpicHeroUserBuildDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *EpicHeroUserBuildDao) Columns() EpicHeroUserBuildColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *EpicHeroUserBuildDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *EpicHeroUserBuildDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *EpicHeroUserBuildDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
97
internal/dao/internal/fribble_hero_set.go
Normal file
97
internal/dao/internal/fribble_hero_set.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// FribbleHeroSetDao is the data access object for the table fribble_hero_set.
|
||||
type FribbleHeroSetDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns FribbleHeroSetColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// FribbleHeroSetColumns defines and stores column names for the table fribble_hero_set.
|
||||
type FribbleHeroSetColumns struct {
|
||||
Id string // 文件编号
|
||||
HeroCode string // 配置编号
|
||||
JsonContent string // 文件名
|
||||
HeroName string // 文件路径
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
SuccessGet string //
|
||||
}
|
||||
|
||||
// fribbleHeroSetColumns holds the columns for the table fribble_hero_set.
|
||||
var fribbleHeroSetColumns = FribbleHeroSetColumns{
|
||||
Id: "id",
|
||||
HeroCode: "hero_code",
|
||||
JsonContent: "json_content",
|
||||
HeroName: "hero_name",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
SuccessGet: "success_get",
|
||||
}
|
||||
|
||||
// NewFribbleHeroSetDao creates and returns a new DAO object for table data access.
|
||||
func NewFribbleHeroSetDao(handlers ...gdb.ModelHandler) *FribbleHeroSetDao {
|
||||
return &FribbleHeroSetDao{
|
||||
group: "default",
|
||||
table: "fribble_hero_set",
|
||||
columns: fribbleHeroSetColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *FribbleHeroSetDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *FribbleHeroSetDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *FribbleHeroSetDao) Columns() FribbleHeroSetColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *FribbleHeroSetDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *FribbleHeroSetDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *FribbleHeroSetDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
123
internal/dao/internal/gear_set_info.go
Normal file
123
internal/dao/internal/gear_set_info.go
Normal file
@@ -0,0 +1,123 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// GearSetInfoDao is the data access object for the table gear_set_info.
|
||||
type GearSetInfoDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns GearSetInfoColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// GearSetInfoColumns defines and stores column names for the table gear_set_info.
|
||||
type GearSetInfoColumns struct {
|
||||
Id string // 装备ID
|
||||
Level string // 装备等级
|
||||
GearId string //
|
||||
Enhance string // 强化等级
|
||||
GearType string // 类型,六个部位之一
|
||||
GearSetType string //
|
||||
MainStatType string // 主属性类型
|
||||
MainStatValue string // 主属性值
|
||||
SubStatOneType string // 副属性1类型
|
||||
SubStatOneValue string // 副属性1值
|
||||
SubStatTwoType string // 副属性2类型
|
||||
SubStatTwoValue string // 副属性2值
|
||||
SubStatThreeType string // 副属性3类型
|
||||
SubStatThreeValue string // 副属性3值
|
||||
SubStatFourType string // 副属性4类型
|
||||
SubStatFourValue string // 副属性4值
|
||||
AccountCode string // 账号标识符
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// gearSetInfoColumns holds the columns for the table gear_set_info.
|
||||
var gearSetInfoColumns = GearSetInfoColumns{
|
||||
Id: "id",
|
||||
Level: "level",
|
||||
GearId: "gear_id",
|
||||
Enhance: "enhance",
|
||||
GearType: "gear_type",
|
||||
GearSetType: "gear_set_type",
|
||||
MainStatType: "main_stat_type",
|
||||
MainStatValue: "main_stat_value",
|
||||
SubStatOneType: "sub_stat_one_type",
|
||||
SubStatOneValue: "sub_stat_one_value",
|
||||
SubStatTwoType: "sub_stat_two_type",
|
||||
SubStatTwoValue: "sub_stat_two_value",
|
||||
SubStatThreeType: "sub_stat_three_type",
|
||||
SubStatThreeValue: "sub_stat_three_value",
|
||||
SubStatFourType: "sub_stat_four_type",
|
||||
SubStatFourValue: "sub_stat_four_value",
|
||||
AccountCode: "account_code",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewGearSetInfoDao creates and returns a new DAO object for table data access.
|
||||
func NewGearSetInfoDao(handlers ...gdb.ModelHandler) *GearSetInfoDao {
|
||||
return &GearSetInfoDao{
|
||||
group: "default",
|
||||
table: "gear_set_info",
|
||||
columns: gearSetInfoColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *GearSetInfoDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *GearSetInfoDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *GearSetInfoDao) Columns() GearSetInfoColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *GearSetInfoDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *GearSetInfoDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *GearSetInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
127
internal/dao/internal/infra_api_access_log.go
Normal file
127
internal/dao/internal/infra_api_access_log.go
Normal file
@@ -0,0 +1,127 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraApiAccessLogDao is the data access object for the table infra_api_access_log.
|
||||
type InfraApiAccessLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraApiAccessLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraApiAccessLogColumns defines and stores column names for the table infra_api_access_log.
|
||||
type InfraApiAccessLogColumns struct {
|
||||
Id string // 日志主键
|
||||
TraceId string // 链路追踪编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
ApplicationName string // 应用名
|
||||
RequestMethod string // 请求方法名
|
||||
RequestUrl string // 请求地址
|
||||
RequestParams string // 请求参数
|
||||
ResponseBody string // 响应结果
|
||||
UserIp string // 用户 IP
|
||||
UserAgent string // 浏览器 UA
|
||||
OperateModule string // 操作模块
|
||||
OperateName string // 操作名
|
||||
OperateType string // 操作分类
|
||||
BeginTime string // 开始请求时间
|
||||
EndTime string // 结束请求时间
|
||||
Duration string // 执行时长
|
||||
ResultCode string // 结果码
|
||||
ResultMsg string // 结果提示
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// infraApiAccessLogColumns holds the columns for the table infra_api_access_log.
|
||||
var infraApiAccessLogColumns = InfraApiAccessLogColumns{
|
||||
Id: "id",
|
||||
TraceId: "trace_id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
ApplicationName: "application_name",
|
||||
RequestMethod: "request_method",
|
||||
RequestUrl: "request_url",
|
||||
RequestParams: "request_params",
|
||||
ResponseBody: "response_body",
|
||||
UserIp: "user_ip",
|
||||
UserAgent: "user_agent",
|
||||
OperateModule: "operate_module",
|
||||
OperateName: "operate_name",
|
||||
OperateType: "operate_type",
|
||||
BeginTime: "begin_time",
|
||||
EndTime: "end_time",
|
||||
Duration: "duration",
|
||||
ResultCode: "result_code",
|
||||
ResultMsg: "result_msg",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewInfraApiAccessLogDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraApiAccessLogDao(handlers ...gdb.ModelHandler) *InfraApiAccessLogDao {
|
||||
return &InfraApiAccessLogDao{
|
||||
group: "default",
|
||||
table: "infra_api_access_log",
|
||||
columns: infraApiAccessLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraApiAccessLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraApiAccessLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraApiAccessLogDao) Columns() InfraApiAccessLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraApiAccessLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraApiAccessLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraApiAccessLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
133
internal/dao/internal/infra_api_error_log.go
Normal file
133
internal/dao/internal/infra_api_error_log.go
Normal file
@@ -0,0 +1,133 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraApiErrorLogDao is the data access object for the table infra_api_error_log.
|
||||
type InfraApiErrorLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraApiErrorLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraApiErrorLogColumns defines and stores column names for the table infra_api_error_log.
|
||||
type InfraApiErrorLogColumns struct {
|
||||
Id string // 编号
|
||||
TraceId string // 链路追踪编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
ApplicationName string // 应用名
|
||||
RequestMethod string // 请求方法名
|
||||
RequestUrl string // 请求地址
|
||||
RequestParams string // 请求参数
|
||||
UserIp string // 用户 IP
|
||||
UserAgent string // 浏览器 UA
|
||||
ExceptionTime string // 异常发生时间
|
||||
ExceptionName string // 异常名
|
||||
ExceptionMessage string // 异常导致的消息
|
||||
ExceptionRootCauseMessage string // 异常导致的根消息
|
||||
ExceptionStackTrace string // 异常的栈轨迹
|
||||
ExceptionClassName string // 异常发生的类全名
|
||||
ExceptionFileName string // 异常发生的类文件
|
||||
ExceptionMethodName string // 异常发生的方法名
|
||||
ExceptionLineNumber string // 异常发生的方法所在行
|
||||
ProcessStatus string // 处理状态
|
||||
ProcessTime string // 处理时间
|
||||
ProcessUserId string // 处理用户编号
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// infraApiErrorLogColumns holds the columns for the table infra_api_error_log.
|
||||
var infraApiErrorLogColumns = InfraApiErrorLogColumns{
|
||||
Id: "id",
|
||||
TraceId: "trace_id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
ApplicationName: "application_name",
|
||||
RequestMethod: "request_method",
|
||||
RequestUrl: "request_url",
|
||||
RequestParams: "request_params",
|
||||
UserIp: "user_ip",
|
||||
UserAgent: "user_agent",
|
||||
ExceptionTime: "exception_time",
|
||||
ExceptionName: "exception_name",
|
||||
ExceptionMessage: "exception_message",
|
||||
ExceptionRootCauseMessage: "exception_root_cause_message",
|
||||
ExceptionStackTrace: "exception_stack_trace",
|
||||
ExceptionClassName: "exception_class_name",
|
||||
ExceptionFileName: "exception_file_name",
|
||||
ExceptionMethodName: "exception_method_name",
|
||||
ExceptionLineNumber: "exception_line_number",
|
||||
ProcessStatus: "process_status",
|
||||
ProcessTime: "process_time",
|
||||
ProcessUserId: "process_user_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewInfraApiErrorLogDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraApiErrorLogDao(handlers ...gdb.ModelHandler) *InfraApiErrorLogDao {
|
||||
return &InfraApiErrorLogDao{
|
||||
group: "default",
|
||||
table: "infra_api_error_log",
|
||||
columns: infraApiErrorLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraApiErrorLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraApiErrorLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraApiErrorLogDao) Columns() InfraApiErrorLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraApiErrorLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraApiErrorLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraApiErrorLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
123
internal/dao/internal/infra_codegen_column.go
Normal file
123
internal/dao/internal/infra_codegen_column.go
Normal file
@@ -0,0 +1,123 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraCodegenColumnDao is the data access object for the table infra_codegen_column.
|
||||
type InfraCodegenColumnDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraCodegenColumnColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraCodegenColumnColumns defines and stores column names for the table infra_codegen_column.
|
||||
type InfraCodegenColumnColumns struct {
|
||||
Id string // 编号
|
||||
TableId string // 表编号
|
||||
ColumnName string // 字段名
|
||||
DataType string // 字段类型
|
||||
ColumnComment string // 字段描述
|
||||
Nullable string // 是否允许为空
|
||||
PrimaryKey string // 是否主键
|
||||
OrdinalPosition string // 排序
|
||||
JavaType string // Java 属性类型
|
||||
JavaField string // Java 属性名
|
||||
DictType string // 字典类型
|
||||
Example string // 数据示例
|
||||
CreateOperation string // 是否为 Create 创建操作的字段
|
||||
UpdateOperation string // 是否为 Update 更新操作的字段
|
||||
ListOperation string // 是否为 List 查询操作的字段
|
||||
ListOperationCondition string // List 查询操作的条件类型
|
||||
ListOperationResult string // 是否为 List 查询操作的返回字段
|
||||
HtmlType string // 显示类型
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraCodegenColumnColumns holds the columns for the table infra_codegen_column.
|
||||
var infraCodegenColumnColumns = InfraCodegenColumnColumns{
|
||||
Id: "id",
|
||||
TableId: "table_id",
|
||||
ColumnName: "column_name",
|
||||
DataType: "data_type",
|
||||
ColumnComment: "column_comment",
|
||||
Nullable: "nullable",
|
||||
PrimaryKey: "primary_key",
|
||||
OrdinalPosition: "ordinal_position",
|
||||
JavaType: "java_type",
|
||||
JavaField: "java_field",
|
||||
DictType: "dict_type",
|
||||
Example: "example",
|
||||
CreateOperation: "create_operation",
|
||||
UpdateOperation: "update_operation",
|
||||
ListOperation: "list_operation",
|
||||
ListOperationCondition: "list_operation_condition",
|
||||
ListOperationResult: "list_operation_result",
|
||||
HtmlType: "html_type",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraCodegenColumnDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraCodegenColumnDao(handlers ...gdb.ModelHandler) *InfraCodegenColumnDao {
|
||||
return &InfraCodegenColumnDao{
|
||||
group: "default",
|
||||
table: "infra_codegen_column",
|
||||
columns: infraCodegenColumnColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraCodegenColumnDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraCodegenColumnDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraCodegenColumnDao) Columns() InfraCodegenColumnColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraCodegenColumnDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraCodegenColumnDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraCodegenColumnDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
125
internal/dao/internal/infra_codegen_table.go
Normal file
125
internal/dao/internal/infra_codegen_table.go
Normal file
@@ -0,0 +1,125 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraCodegenTableDao is the data access object for the table infra_codegen_table.
|
||||
type InfraCodegenTableDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraCodegenTableColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraCodegenTableColumns defines and stores column names for the table infra_codegen_table.
|
||||
type InfraCodegenTableColumns struct {
|
||||
Id string // 编号
|
||||
DataSourceConfigId string // 数据源配置的编号
|
||||
Scene string // 生成场景
|
||||
TableName string // 表名称
|
||||
TableComment string // 表描述
|
||||
Remark string // 备注
|
||||
ModuleName string // 模块名
|
||||
BusinessName string // 业务名
|
||||
ClassName string // 类名称
|
||||
ClassComment string // 类描述
|
||||
Author string // 作者
|
||||
TemplateType string // 模板类型
|
||||
FrontType string // 前端类型
|
||||
ParentMenuId string // 父菜单编号
|
||||
MasterTableId string // 主表的编号
|
||||
SubJoinColumnId string // 子表关联主表的字段编号
|
||||
SubJoinMany string // 主表与子表是否一对多
|
||||
TreeParentColumnId string // 树表的父字段编号
|
||||
TreeNameColumnId string // 树表的名字字段编号
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraCodegenTableColumns holds the columns for the table infra_codegen_table.
|
||||
var infraCodegenTableColumns = InfraCodegenTableColumns{
|
||||
Id: "id",
|
||||
DataSourceConfigId: "data_source_config_id",
|
||||
Scene: "scene",
|
||||
TableName: "table_name",
|
||||
TableComment: "table_comment",
|
||||
Remark: "remark",
|
||||
ModuleName: "module_name",
|
||||
BusinessName: "business_name",
|
||||
ClassName: "class_name",
|
||||
ClassComment: "class_comment",
|
||||
Author: "author",
|
||||
TemplateType: "template_type",
|
||||
FrontType: "front_type",
|
||||
ParentMenuId: "parent_menu_id",
|
||||
MasterTableId: "master_table_id",
|
||||
SubJoinColumnId: "sub_join_column_id",
|
||||
SubJoinMany: "sub_join_many",
|
||||
TreeParentColumnId: "tree_parent_column_id",
|
||||
TreeNameColumnId: "tree_name_column_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraCodegenTableDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraCodegenTableDao(handlers ...gdb.ModelHandler) *InfraCodegenTableDao {
|
||||
return &InfraCodegenTableDao{
|
||||
group: "default",
|
||||
table: "infra_codegen_table",
|
||||
columns: infraCodegenTableColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraCodegenTableDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraCodegenTableDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraCodegenTableDao) Columns() InfraCodegenTableColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraCodegenTableDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraCodegenTableDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraCodegenTableDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/infra_config.go
Normal file
103
internal/dao/internal/infra_config.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraConfigDao is the data access object for the table infra_config.
|
||||
type InfraConfigDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraConfigColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraConfigColumns defines and stores column names for the table infra_config.
|
||||
type InfraConfigColumns struct {
|
||||
Id string // 参数主键
|
||||
Category string // 参数分组
|
||||
Type string // 参数类型
|
||||
Name string // 参数名称
|
||||
ConfigKey string // 参数键名
|
||||
Value string // 参数键值
|
||||
Visible string // 是否可见
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraConfigColumns holds the columns for the table infra_config.
|
||||
var infraConfigColumns = InfraConfigColumns{
|
||||
Id: "id",
|
||||
Category: "category",
|
||||
Type: "type",
|
||||
Name: "name",
|
||||
ConfigKey: "config_key",
|
||||
Value: "value",
|
||||
Visible: "visible",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraConfigDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraConfigDao(handlers ...gdb.ModelHandler) *InfraConfigDao {
|
||||
return &InfraConfigDao{
|
||||
group: "default",
|
||||
table: "infra_config",
|
||||
columns: infraConfigColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraConfigDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraConfigDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraConfigDao) Columns() InfraConfigColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraConfigDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraConfigDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
97
internal/dao/internal/infra_data_source_config.go
Normal file
97
internal/dao/internal/infra_data_source_config.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraDataSourceConfigDao is the data access object for the table infra_data_source_config.
|
||||
type InfraDataSourceConfigDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraDataSourceConfigColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraDataSourceConfigColumns defines and stores column names for the table infra_data_source_config.
|
||||
type InfraDataSourceConfigColumns struct {
|
||||
Id string // 主键编号
|
||||
Name string // 参数名称
|
||||
Url string // 数据源连接
|
||||
Username string // 用户名
|
||||
Password string // 密码
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraDataSourceConfigColumns holds the columns for the table infra_data_source_config.
|
||||
var infraDataSourceConfigColumns = InfraDataSourceConfigColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Url: "url",
|
||||
Username: "username",
|
||||
Password: "password",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraDataSourceConfigDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraDataSourceConfigDao(handlers ...gdb.ModelHandler) *InfraDataSourceConfigDao {
|
||||
return &InfraDataSourceConfigDao{
|
||||
group: "default",
|
||||
table: "infra_data_source_config",
|
||||
columns: infraDataSourceConfigColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraDataSourceConfigDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraDataSourceConfigDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraDataSourceConfigDao) Columns() InfraDataSourceConfigColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraDataSourceConfigDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraDataSourceConfigDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraDataSourceConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
101
internal/dao/internal/infra_file.go
Normal file
101
internal/dao/internal/infra_file.go
Normal file
@@ -0,0 +1,101 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraFileDao is the data access object for the table infra_file.
|
||||
type InfraFileDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraFileColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraFileColumns defines and stores column names for the table infra_file.
|
||||
type InfraFileColumns struct {
|
||||
Id string // 文件编号
|
||||
ConfigId string // 配置编号
|
||||
Name string // 文件名
|
||||
Path string // 文件路径
|
||||
Url string // 文件 URL
|
||||
Type string // 文件类型
|
||||
Size string // 文件大小
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraFileColumns holds the columns for the table infra_file.
|
||||
var infraFileColumns = InfraFileColumns{
|
||||
Id: "id",
|
||||
ConfigId: "config_id",
|
||||
Name: "name",
|
||||
Path: "path",
|
||||
Url: "url",
|
||||
Type: "type",
|
||||
Size: "size",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraFileDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraFileDao(handlers ...gdb.ModelHandler) *InfraFileDao {
|
||||
return &InfraFileDao{
|
||||
group: "default",
|
||||
table: "infra_file",
|
||||
columns: infraFileColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraFileDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraFileDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraFileDao) Columns() InfraFileColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraFileDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraFileDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraFileDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/dao/internal/infra_file_config.go
Normal file
99
internal/dao/internal/infra_file_config.go
Normal file
@@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraFileConfigDao is the data access object for the table infra_file_config.
|
||||
type InfraFileConfigDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraFileConfigColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraFileConfigColumns defines and stores column names for the table infra_file_config.
|
||||
type InfraFileConfigColumns struct {
|
||||
Id string // 编号
|
||||
Name string // 配置名
|
||||
Storage string // 存储器
|
||||
Remark string // 备注
|
||||
Master string // 是否为主配置
|
||||
Config string // 存储配置
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraFileConfigColumns holds the columns for the table infra_file_config.
|
||||
var infraFileConfigColumns = InfraFileConfigColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Storage: "storage",
|
||||
Remark: "remark",
|
||||
Master: "master",
|
||||
Config: "config",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraFileConfigDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraFileConfigDao(handlers ...gdb.ModelHandler) *InfraFileConfigDao {
|
||||
return &InfraFileConfigDao{
|
||||
group: "default",
|
||||
table: "infra_file_config",
|
||||
columns: infraFileConfigColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraFileConfigDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraFileConfigDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraFileConfigDao) Columns() InfraFileConfigColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraFileConfigDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraFileConfigDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraFileConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
95
internal/dao/internal/infra_file_content.go
Normal file
95
internal/dao/internal/infra_file_content.go
Normal file
@@ -0,0 +1,95 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraFileContentDao is the data access object for the table infra_file_content.
|
||||
type InfraFileContentDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraFileContentColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraFileContentColumns defines and stores column names for the table infra_file_content.
|
||||
type InfraFileContentColumns struct {
|
||||
Id string // 编号
|
||||
ConfigId string // 配置编号
|
||||
Path string // 文件路径
|
||||
Content string // 文件内容
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraFileContentColumns holds the columns for the table infra_file_content.
|
||||
var infraFileContentColumns = InfraFileContentColumns{
|
||||
Id: "id",
|
||||
ConfigId: "config_id",
|
||||
Path: "path",
|
||||
Content: "content",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraFileContentDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraFileContentDao(handlers ...gdb.ModelHandler) *InfraFileContentDao {
|
||||
return &InfraFileContentDao{
|
||||
group: "default",
|
||||
table: "infra_file_content",
|
||||
columns: infraFileContentColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraFileContentDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraFileContentDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraFileContentDao) Columns() InfraFileContentColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraFileContentDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraFileContentDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraFileContentDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/infra_job.go
Normal file
105
internal/dao/internal/infra_job.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraJobDao is the data access object for the table infra_job.
|
||||
type InfraJobDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraJobColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraJobColumns defines and stores column names for the table infra_job.
|
||||
type InfraJobColumns struct {
|
||||
Id string // 任务编号
|
||||
Name string // 任务名称
|
||||
Status string // 任务状态
|
||||
HandlerName string // 处理器的名字
|
||||
HandlerParam string // 处理器的参数
|
||||
CronExpression string // CRON 表达式
|
||||
RetryCount string // 重试次数
|
||||
RetryInterval string // 重试间隔
|
||||
MonitorTimeout string // 监控超时时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraJobColumns holds the columns for the table infra_job.
|
||||
var infraJobColumns = InfraJobColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Status: "status",
|
||||
HandlerName: "handler_name",
|
||||
HandlerParam: "handler_param",
|
||||
CronExpression: "cron_expression",
|
||||
RetryCount: "retry_count",
|
||||
RetryInterval: "retry_interval",
|
||||
MonitorTimeout: "monitor_timeout",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraJobDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraJobDao(handlers ...gdb.ModelHandler) *InfraJobDao {
|
||||
return &InfraJobDao{
|
||||
group: "default",
|
||||
table: "infra_job",
|
||||
columns: infraJobColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraJobDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraJobDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraJobDao) Columns() InfraJobColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraJobDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraJobDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraJobDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/infra_job_log.go
Normal file
107
internal/dao/internal/infra_job_log.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// InfraJobLogDao is the data access object for the table infra_job_log.
|
||||
type InfraJobLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns InfraJobLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// InfraJobLogColumns defines and stores column names for the table infra_job_log.
|
||||
type InfraJobLogColumns struct {
|
||||
Id string // 日志编号
|
||||
JobId string // 任务编号
|
||||
HandlerName string // 处理器的名字
|
||||
HandlerParam string // 处理器的参数
|
||||
ExecuteIndex string // 第几次执行
|
||||
BeginTime string // 开始执行时间
|
||||
EndTime string // 结束执行时间
|
||||
Duration string // 执行时长
|
||||
Status string // 任务状态
|
||||
Result string // 结果数据
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// infraJobLogColumns holds the columns for the table infra_job_log.
|
||||
var infraJobLogColumns = InfraJobLogColumns{
|
||||
Id: "id",
|
||||
JobId: "job_id",
|
||||
HandlerName: "handler_name",
|
||||
HandlerParam: "handler_param",
|
||||
ExecuteIndex: "execute_index",
|
||||
BeginTime: "begin_time",
|
||||
EndTime: "end_time",
|
||||
Duration: "duration",
|
||||
Status: "status",
|
||||
Result: "result",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewInfraJobLogDao creates and returns a new DAO object for table data access.
|
||||
func NewInfraJobLogDao(handlers ...gdb.ModelHandler) *InfraJobLogDao {
|
||||
return &InfraJobLogDao{
|
||||
group: "default",
|
||||
table: "infra_job_log",
|
||||
columns: infraJobLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *InfraJobLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *InfraJobLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *InfraJobLogDao) Columns() InfraJobLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *InfraJobLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *InfraJobLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *InfraJobLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
85
internal/dao/internal/qrtz_blob_triggers.go
Normal file
85
internal/dao/internal/qrtz_blob_triggers.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzBlobTriggersDao is the data access object for the table qrtz_blob_triggers.
|
||||
type QrtzBlobTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzBlobTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzBlobTriggersColumns defines and stores column names for the table qrtz_blob_triggers.
|
||||
type QrtzBlobTriggersColumns struct {
|
||||
SchedName string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
BlobData string //
|
||||
}
|
||||
|
||||
// qrtzBlobTriggersColumns holds the columns for the table qrtz_blob_triggers.
|
||||
var qrtzBlobTriggersColumns = QrtzBlobTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
BlobData: "BLOB_DATA",
|
||||
}
|
||||
|
||||
// NewQrtzBlobTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzBlobTriggersDao(handlers ...gdb.ModelHandler) *QrtzBlobTriggersDao {
|
||||
return &QrtzBlobTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_blob_triggers",
|
||||
columns: qrtzBlobTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzBlobTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzBlobTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzBlobTriggersDao) Columns() QrtzBlobTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzBlobTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzBlobTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzBlobTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
83
internal/dao/internal/qrtz_calendars.go
Normal file
83
internal/dao/internal/qrtz_calendars.go
Normal file
@@ -0,0 +1,83 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzCalendarsDao is the data access object for the table qrtz_calendars.
|
||||
type QrtzCalendarsDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzCalendarsColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzCalendarsColumns defines and stores column names for the table qrtz_calendars.
|
||||
type QrtzCalendarsColumns struct {
|
||||
SchedName string //
|
||||
CalendarName string //
|
||||
Calendar string //
|
||||
}
|
||||
|
||||
// qrtzCalendarsColumns holds the columns for the table qrtz_calendars.
|
||||
var qrtzCalendarsColumns = QrtzCalendarsColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
CalendarName: "CALENDAR_NAME",
|
||||
Calendar: "CALENDAR",
|
||||
}
|
||||
|
||||
// NewQrtzCalendarsDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzCalendarsDao(handlers ...gdb.ModelHandler) *QrtzCalendarsDao {
|
||||
return &QrtzCalendarsDao{
|
||||
group: "default",
|
||||
table: "qrtz_calendars",
|
||||
columns: qrtzCalendarsColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzCalendarsDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzCalendarsDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzCalendarsDao) Columns() QrtzCalendarsColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzCalendarsDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzCalendarsDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzCalendarsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
87
internal/dao/internal/qrtz_cron_triggers.go
Normal file
87
internal/dao/internal/qrtz_cron_triggers.go
Normal file
@@ -0,0 +1,87 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzCronTriggersDao is the data access object for the table qrtz_cron_triggers.
|
||||
type QrtzCronTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzCronTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzCronTriggersColumns defines and stores column names for the table qrtz_cron_triggers.
|
||||
type QrtzCronTriggersColumns struct {
|
||||
SchedName string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
CronExpression string //
|
||||
TimeZoneId string //
|
||||
}
|
||||
|
||||
// qrtzCronTriggersColumns holds the columns for the table qrtz_cron_triggers.
|
||||
var qrtzCronTriggersColumns = QrtzCronTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
CronExpression: "CRON_EXPRESSION",
|
||||
TimeZoneId: "TIME_ZONE_ID",
|
||||
}
|
||||
|
||||
// NewQrtzCronTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzCronTriggersDao(handlers ...gdb.ModelHandler) *QrtzCronTriggersDao {
|
||||
return &QrtzCronTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_cron_triggers",
|
||||
columns: qrtzCronTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzCronTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzCronTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzCronTriggersDao) Columns() QrtzCronTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzCronTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzCronTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzCronTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/qrtz_fired_triggers.go
Normal file
103
internal/dao/internal/qrtz_fired_triggers.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzFiredTriggersDao is the data access object for the table qrtz_fired_triggers.
|
||||
type QrtzFiredTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzFiredTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzFiredTriggersColumns defines and stores column names for the table qrtz_fired_triggers.
|
||||
type QrtzFiredTriggersColumns struct {
|
||||
SchedName string //
|
||||
EntryId string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
InstanceName string //
|
||||
FiredTime string //
|
||||
SchedTime string //
|
||||
Priority string //
|
||||
State string //
|
||||
JobName string //
|
||||
JobGroup string //
|
||||
IsNonconcurrent string //
|
||||
RequestsRecovery string //
|
||||
}
|
||||
|
||||
// qrtzFiredTriggersColumns holds the columns for the table qrtz_fired_triggers.
|
||||
var qrtzFiredTriggersColumns = QrtzFiredTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
EntryId: "ENTRY_ID",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
InstanceName: "INSTANCE_NAME",
|
||||
FiredTime: "FIRED_TIME",
|
||||
SchedTime: "SCHED_TIME",
|
||||
Priority: "PRIORITY",
|
||||
State: "STATE",
|
||||
JobName: "JOB_NAME",
|
||||
JobGroup: "JOB_GROUP",
|
||||
IsNonconcurrent: "IS_NONCONCURRENT",
|
||||
RequestsRecovery: "REQUESTS_RECOVERY",
|
||||
}
|
||||
|
||||
// NewQrtzFiredTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzFiredTriggersDao(handlers ...gdb.ModelHandler) *QrtzFiredTriggersDao {
|
||||
return &QrtzFiredTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_fired_triggers",
|
||||
columns: qrtzFiredTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzFiredTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzFiredTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzFiredTriggersDao) Columns() QrtzFiredTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzFiredTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzFiredTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzFiredTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
97
internal/dao/internal/qrtz_job_details.go
Normal file
97
internal/dao/internal/qrtz_job_details.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzJobDetailsDao is the data access object for the table qrtz_job_details.
|
||||
type QrtzJobDetailsDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzJobDetailsColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzJobDetailsColumns defines and stores column names for the table qrtz_job_details.
|
||||
type QrtzJobDetailsColumns struct {
|
||||
SchedName string //
|
||||
JobName string //
|
||||
JobGroup string //
|
||||
Description string //
|
||||
JobClassName string //
|
||||
IsDurable string //
|
||||
IsNonconcurrent string //
|
||||
IsUpdateData string //
|
||||
RequestsRecovery string //
|
||||
JobData string //
|
||||
}
|
||||
|
||||
// qrtzJobDetailsColumns holds the columns for the table qrtz_job_details.
|
||||
var qrtzJobDetailsColumns = QrtzJobDetailsColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
JobName: "JOB_NAME",
|
||||
JobGroup: "JOB_GROUP",
|
||||
Description: "DESCRIPTION",
|
||||
JobClassName: "JOB_CLASS_NAME",
|
||||
IsDurable: "IS_DURABLE",
|
||||
IsNonconcurrent: "IS_NONCONCURRENT",
|
||||
IsUpdateData: "IS_UPDATE_DATA",
|
||||
RequestsRecovery: "REQUESTS_RECOVERY",
|
||||
JobData: "JOB_DATA",
|
||||
}
|
||||
|
||||
// NewQrtzJobDetailsDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzJobDetailsDao(handlers ...gdb.ModelHandler) *QrtzJobDetailsDao {
|
||||
return &QrtzJobDetailsDao{
|
||||
group: "default",
|
||||
table: "qrtz_job_details",
|
||||
columns: qrtzJobDetailsColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzJobDetailsDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzJobDetailsDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzJobDetailsDao) Columns() QrtzJobDetailsColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzJobDetailsDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzJobDetailsDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzJobDetailsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
81
internal/dao/internal/qrtz_locks.go
Normal file
81
internal/dao/internal/qrtz_locks.go
Normal file
@@ -0,0 +1,81 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzLocksDao is the data access object for the table qrtz_locks.
|
||||
type QrtzLocksDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzLocksColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzLocksColumns defines and stores column names for the table qrtz_locks.
|
||||
type QrtzLocksColumns struct {
|
||||
SchedName string //
|
||||
LockName string //
|
||||
}
|
||||
|
||||
// qrtzLocksColumns holds the columns for the table qrtz_locks.
|
||||
var qrtzLocksColumns = QrtzLocksColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
LockName: "LOCK_NAME",
|
||||
}
|
||||
|
||||
// NewQrtzLocksDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzLocksDao(handlers ...gdb.ModelHandler) *QrtzLocksDao {
|
||||
return &QrtzLocksDao{
|
||||
group: "default",
|
||||
table: "qrtz_locks",
|
||||
columns: qrtzLocksColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzLocksDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzLocksDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzLocksDao) Columns() QrtzLocksColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzLocksDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzLocksDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzLocksDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
81
internal/dao/internal/qrtz_paused_trigger_grps.go
Normal file
81
internal/dao/internal/qrtz_paused_trigger_grps.go
Normal file
@@ -0,0 +1,81 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzPausedTriggerGrpsDao is the data access object for the table qrtz_paused_trigger_grps.
|
||||
type QrtzPausedTriggerGrpsDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzPausedTriggerGrpsColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzPausedTriggerGrpsColumns defines and stores column names for the table qrtz_paused_trigger_grps.
|
||||
type QrtzPausedTriggerGrpsColumns struct {
|
||||
SchedName string //
|
||||
TriggerGroup string //
|
||||
}
|
||||
|
||||
// qrtzPausedTriggerGrpsColumns holds the columns for the table qrtz_paused_trigger_grps.
|
||||
var qrtzPausedTriggerGrpsColumns = QrtzPausedTriggerGrpsColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
}
|
||||
|
||||
// NewQrtzPausedTriggerGrpsDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzPausedTriggerGrpsDao(handlers ...gdb.ModelHandler) *QrtzPausedTriggerGrpsDao {
|
||||
return &QrtzPausedTriggerGrpsDao{
|
||||
group: "default",
|
||||
table: "qrtz_paused_trigger_grps",
|
||||
columns: qrtzPausedTriggerGrpsColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) Columns() QrtzPausedTriggerGrpsColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzPausedTriggerGrpsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
85
internal/dao/internal/qrtz_scheduler_state.go
Normal file
85
internal/dao/internal/qrtz_scheduler_state.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzSchedulerStateDao is the data access object for the table qrtz_scheduler_state.
|
||||
type QrtzSchedulerStateDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzSchedulerStateColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzSchedulerStateColumns defines and stores column names for the table qrtz_scheduler_state.
|
||||
type QrtzSchedulerStateColumns struct {
|
||||
SchedName string //
|
||||
InstanceName string //
|
||||
LastCheckinTime string //
|
||||
CheckinInterval string //
|
||||
}
|
||||
|
||||
// qrtzSchedulerStateColumns holds the columns for the table qrtz_scheduler_state.
|
||||
var qrtzSchedulerStateColumns = QrtzSchedulerStateColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
InstanceName: "INSTANCE_NAME",
|
||||
LastCheckinTime: "LAST_CHECKIN_TIME",
|
||||
CheckinInterval: "CHECKIN_INTERVAL",
|
||||
}
|
||||
|
||||
// NewQrtzSchedulerStateDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzSchedulerStateDao(handlers ...gdb.ModelHandler) *QrtzSchedulerStateDao {
|
||||
return &QrtzSchedulerStateDao{
|
||||
group: "default",
|
||||
table: "qrtz_scheduler_state",
|
||||
columns: qrtzSchedulerStateColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzSchedulerStateDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzSchedulerStateDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzSchedulerStateDao) Columns() QrtzSchedulerStateColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzSchedulerStateDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzSchedulerStateDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzSchedulerStateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
89
internal/dao/internal/qrtz_simple_triggers.go
Normal file
89
internal/dao/internal/qrtz_simple_triggers.go
Normal file
@@ -0,0 +1,89 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzSimpleTriggersDao is the data access object for the table qrtz_simple_triggers.
|
||||
type QrtzSimpleTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzSimpleTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzSimpleTriggersColumns defines and stores column names for the table qrtz_simple_triggers.
|
||||
type QrtzSimpleTriggersColumns struct {
|
||||
SchedName string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
RepeatCount string //
|
||||
RepeatInterval string //
|
||||
TimesTriggered string //
|
||||
}
|
||||
|
||||
// qrtzSimpleTriggersColumns holds the columns for the table qrtz_simple_triggers.
|
||||
var qrtzSimpleTriggersColumns = QrtzSimpleTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
RepeatCount: "REPEAT_COUNT",
|
||||
RepeatInterval: "REPEAT_INTERVAL",
|
||||
TimesTriggered: "TIMES_TRIGGERED",
|
||||
}
|
||||
|
||||
// NewQrtzSimpleTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzSimpleTriggersDao(handlers ...gdb.ModelHandler) *QrtzSimpleTriggersDao {
|
||||
return &QrtzSimpleTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_simple_triggers",
|
||||
columns: qrtzSimpleTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzSimpleTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzSimpleTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzSimpleTriggersDao) Columns() QrtzSimpleTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzSimpleTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzSimpleTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzSimpleTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/qrtz_simprop_triggers.go
Normal file
105
internal/dao/internal/qrtz_simprop_triggers.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzSimpropTriggersDao is the data access object for the table qrtz_simprop_triggers.
|
||||
type QrtzSimpropTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzSimpropTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzSimpropTriggersColumns defines and stores column names for the table qrtz_simprop_triggers.
|
||||
type QrtzSimpropTriggersColumns struct {
|
||||
SchedName string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
StrProp1 string //
|
||||
StrProp2 string //
|
||||
StrProp3 string //
|
||||
IntProp1 string //
|
||||
IntProp2 string //
|
||||
LongProp1 string //
|
||||
LongProp2 string //
|
||||
DecProp1 string //
|
||||
DecProp2 string //
|
||||
BoolProp1 string //
|
||||
BoolProp2 string //
|
||||
}
|
||||
|
||||
// qrtzSimpropTriggersColumns holds the columns for the table qrtz_simprop_triggers.
|
||||
var qrtzSimpropTriggersColumns = QrtzSimpropTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
StrProp1: "STR_PROP_1",
|
||||
StrProp2: "STR_PROP_2",
|
||||
StrProp3: "STR_PROP_3",
|
||||
IntProp1: "INT_PROP_1",
|
||||
IntProp2: "INT_PROP_2",
|
||||
LongProp1: "LONG_PROP_1",
|
||||
LongProp2: "LONG_PROP_2",
|
||||
DecProp1: "DEC_PROP_1",
|
||||
DecProp2: "DEC_PROP_2",
|
||||
BoolProp1: "BOOL_PROP_1",
|
||||
BoolProp2: "BOOL_PROP_2",
|
||||
}
|
||||
|
||||
// NewQrtzSimpropTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzSimpropTriggersDao(handlers ...gdb.ModelHandler) *QrtzSimpropTriggersDao {
|
||||
return &QrtzSimpropTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_simprop_triggers",
|
||||
columns: qrtzSimpropTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzSimpropTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzSimpropTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzSimpropTriggersDao) Columns() QrtzSimpropTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzSimpropTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzSimpropTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzSimpropTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
109
internal/dao/internal/qrtz_triggers.go
Normal file
109
internal/dao/internal/qrtz_triggers.go
Normal file
@@ -0,0 +1,109 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// QrtzTriggersDao is the data access object for the table qrtz_triggers.
|
||||
type QrtzTriggersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns QrtzTriggersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// QrtzTriggersColumns defines and stores column names for the table qrtz_triggers.
|
||||
type QrtzTriggersColumns struct {
|
||||
SchedName string //
|
||||
TriggerName string //
|
||||
TriggerGroup string //
|
||||
JobName string //
|
||||
JobGroup string //
|
||||
Description string //
|
||||
NextFireTime string //
|
||||
PrevFireTime string //
|
||||
Priority string //
|
||||
TriggerState string //
|
||||
TriggerType string //
|
||||
StartTime string //
|
||||
EndTime string //
|
||||
CalendarName string //
|
||||
MisfireInstr string //
|
||||
JobData string //
|
||||
}
|
||||
|
||||
// qrtzTriggersColumns holds the columns for the table qrtz_triggers.
|
||||
var qrtzTriggersColumns = QrtzTriggersColumns{
|
||||
SchedName: "SCHED_NAME",
|
||||
TriggerName: "TRIGGER_NAME",
|
||||
TriggerGroup: "TRIGGER_GROUP",
|
||||
JobName: "JOB_NAME",
|
||||
JobGroup: "JOB_GROUP",
|
||||
Description: "DESCRIPTION",
|
||||
NextFireTime: "NEXT_FIRE_TIME",
|
||||
PrevFireTime: "PREV_FIRE_TIME",
|
||||
Priority: "PRIORITY",
|
||||
TriggerState: "TRIGGER_STATE",
|
||||
TriggerType: "TRIGGER_TYPE",
|
||||
StartTime: "START_TIME",
|
||||
EndTime: "END_TIME",
|
||||
CalendarName: "CALENDAR_NAME",
|
||||
MisfireInstr: "MISFIRE_INSTR",
|
||||
JobData: "JOB_DATA",
|
||||
}
|
||||
|
||||
// NewQrtzTriggersDao creates and returns a new DAO object for table data access.
|
||||
func NewQrtzTriggersDao(handlers ...gdb.ModelHandler) *QrtzTriggersDao {
|
||||
return &QrtzTriggersDao{
|
||||
group: "default",
|
||||
table: "qrtz_triggers",
|
||||
columns: qrtzTriggersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *QrtzTriggersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *QrtzTriggersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *QrtzTriggersDao) Columns() QrtzTriggersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *QrtzTriggersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *QrtzTriggersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *QrtzTriggersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/system_dept.go
Normal file
105
internal/dao/internal/system_dept.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemDeptDao is the data access object for the table system_dept.
|
||||
type SystemDeptDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemDeptColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemDeptColumns defines and stores column names for the table system_dept.
|
||||
type SystemDeptColumns struct {
|
||||
Id string // 部门id
|
||||
Name string // 部门名称
|
||||
ParentId string // 父部门id
|
||||
Sort string // 显示顺序
|
||||
LeaderUserId string // 负责人
|
||||
Phone string // 联系电话
|
||||
Email string // 邮箱
|
||||
Status string // 部门状态(0正常 1停用)
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemDeptColumns holds the columns for the table system_dept.
|
||||
var systemDeptColumns = SystemDeptColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
ParentId: "parent_id",
|
||||
Sort: "sort",
|
||||
LeaderUserId: "leader_user_id",
|
||||
Phone: "phone",
|
||||
Email: "email",
|
||||
Status: "status",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemDeptDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemDeptDao(handlers ...gdb.ModelHandler) *SystemDeptDao {
|
||||
return &SystemDeptDao{
|
||||
group: "default",
|
||||
table: "system_dept",
|
||||
columns: systemDeptColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemDeptDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemDeptDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemDeptDao) Columns() SystemDeptColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemDeptDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemDeptDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/system_dict_data.go
Normal file
105
internal/dao/internal/system_dict_data.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemDictDataDao is the data access object for the table system_dict_data.
|
||||
type SystemDictDataDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemDictDataColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemDictDataColumns defines and stores column names for the table system_dict_data.
|
||||
type SystemDictDataColumns struct {
|
||||
Id string // 字典编码
|
||||
Sort string // 字典排序
|
||||
Label string // 字典标签
|
||||
Value string // 字典键值
|
||||
DictType string // 字典类型
|
||||
Status string // 状态(0正常 1停用)
|
||||
ColorType string // 颜色类型
|
||||
CssClass string // css 样式
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemDictDataColumns holds the columns for the table system_dict_data.
|
||||
var systemDictDataColumns = SystemDictDataColumns{
|
||||
Id: "id",
|
||||
Sort: "sort",
|
||||
Label: "label",
|
||||
Value: "value",
|
||||
DictType: "dict_type",
|
||||
Status: "status",
|
||||
ColorType: "color_type",
|
||||
CssClass: "css_class",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemDictDataDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemDictDataDao(handlers ...gdb.ModelHandler) *SystemDictDataDao {
|
||||
return &SystemDictDataDao{
|
||||
group: "default",
|
||||
table: "system_dict_data",
|
||||
columns: systemDictDataColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemDictDataDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemDictDataDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemDictDataDao) Columns() SystemDictDataColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemDictDataDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemDictDataDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemDictDataDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/dao/internal/system_dict_type.go
Normal file
99
internal/dao/internal/system_dict_type.go
Normal file
@@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemDictTypeDao is the data access object for the table system_dict_type.
|
||||
type SystemDictTypeDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemDictTypeColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemDictTypeColumns defines and stores column names for the table system_dict_type.
|
||||
type SystemDictTypeColumns struct {
|
||||
Id string // 字典主键
|
||||
Name string // 字典名称
|
||||
Type string // 字典类型
|
||||
Status string // 状态(0正常 1停用)
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
DeletedTime string // 删除时间
|
||||
}
|
||||
|
||||
// systemDictTypeColumns holds the columns for the table system_dict_type.
|
||||
var systemDictTypeColumns = SystemDictTypeColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Type: "type",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
DeletedTime: "deleted_time",
|
||||
}
|
||||
|
||||
// NewSystemDictTypeDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemDictTypeDao(handlers ...gdb.ModelHandler) *SystemDictTypeDao {
|
||||
return &SystemDictTypeDao{
|
||||
group: "default",
|
||||
table: "system_dict_type",
|
||||
columns: systemDictTypeColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemDictTypeDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemDictTypeDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemDictTypeDao) Columns() SystemDictTypeColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemDictTypeDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemDictTypeDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemDictTypeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_login_log.go
Normal file
107
internal/dao/internal/system_login_log.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemLoginLogDao is the data access object for the table system_login_log.
|
||||
type SystemLoginLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemLoginLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemLoginLogColumns defines and stores column names for the table system_login_log.
|
||||
type SystemLoginLogColumns struct {
|
||||
Id string // 访问ID
|
||||
LogType string // 日志类型
|
||||
TraceId string // 链路追踪编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
Username string // 用户账号
|
||||
Result string // 登陆结果
|
||||
UserIp string // 用户 IP
|
||||
UserAgent string // 浏览器 UA
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemLoginLogColumns holds the columns for the table system_login_log.
|
||||
var systemLoginLogColumns = SystemLoginLogColumns{
|
||||
Id: "id",
|
||||
LogType: "log_type",
|
||||
TraceId: "trace_id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
Username: "username",
|
||||
Result: "result",
|
||||
UserIp: "user_ip",
|
||||
UserAgent: "user_agent",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemLoginLogDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemLoginLogDao(handlers ...gdb.ModelHandler) *SystemLoginLogDao {
|
||||
return &SystemLoginLogDao{
|
||||
group: "default",
|
||||
table: "system_login_log",
|
||||
columns: systemLoginLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemLoginLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemLoginLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemLoginLogDao) Columns() SystemLoginLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemLoginLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemLoginLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemLoginLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/system_mail_account.go
Normal file
103
internal/dao/internal/system_mail_account.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemMailAccountDao is the data access object for the table system_mail_account.
|
||||
type SystemMailAccountDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemMailAccountColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemMailAccountColumns defines and stores column names for the table system_mail_account.
|
||||
type SystemMailAccountColumns struct {
|
||||
Id string // 主键
|
||||
Mail string // 邮箱
|
||||
Username string // 用户名
|
||||
Password string // 密码
|
||||
Host string // SMTP 服务器域名
|
||||
Port string // SMTP 服务器端口
|
||||
SslEnable string // 是否开启 SSL
|
||||
StarttlsEnable string // 是否开启 STARTTLS
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemMailAccountColumns holds the columns for the table system_mail_account.
|
||||
var systemMailAccountColumns = SystemMailAccountColumns{
|
||||
Id: "id",
|
||||
Mail: "mail",
|
||||
Username: "username",
|
||||
Password: "password",
|
||||
Host: "host",
|
||||
Port: "port",
|
||||
SslEnable: "ssl_enable",
|
||||
StarttlsEnable: "starttls_enable",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemMailAccountDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemMailAccountDao(handlers ...gdb.ModelHandler) *SystemMailAccountDao {
|
||||
return &SystemMailAccountDao{
|
||||
group: "default",
|
||||
table: "system_mail_account",
|
||||
columns: systemMailAccountColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemMailAccountDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemMailAccountDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemMailAccountDao) Columns() SystemMailAccountColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemMailAccountDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemMailAccountDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemMailAccountDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
119
internal/dao/internal/system_mail_log.go
Normal file
119
internal/dao/internal/system_mail_log.go
Normal file
@@ -0,0 +1,119 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemMailLogDao is the data access object for the table system_mail_log.
|
||||
type SystemMailLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemMailLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemMailLogColumns defines and stores column names for the table system_mail_log.
|
||||
type SystemMailLogColumns struct {
|
||||
Id string // 编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
ToMail string // 接收邮箱地址
|
||||
AccountId string // 邮箱账号编号
|
||||
FromMail string // 发送邮箱地址
|
||||
TemplateId string // 模板编号
|
||||
TemplateCode string // 模板编码
|
||||
TemplateNickname string // 模版发送人名称
|
||||
TemplateTitle string // 邮件标题
|
||||
TemplateContent string // 邮件内容
|
||||
TemplateParams string // 邮件参数
|
||||
SendStatus string // 发送状态
|
||||
SendTime string // 发送时间
|
||||
SendMessageId string // 发送返回的消息 ID
|
||||
SendException string // 发送异常
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemMailLogColumns holds the columns for the table system_mail_log.
|
||||
var systemMailLogColumns = SystemMailLogColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
ToMail: "to_mail",
|
||||
AccountId: "account_id",
|
||||
FromMail: "from_mail",
|
||||
TemplateId: "template_id",
|
||||
TemplateCode: "template_code",
|
||||
TemplateNickname: "template_nickname",
|
||||
TemplateTitle: "template_title",
|
||||
TemplateContent: "template_content",
|
||||
TemplateParams: "template_params",
|
||||
SendStatus: "send_status",
|
||||
SendTime: "send_time",
|
||||
SendMessageId: "send_message_id",
|
||||
SendException: "send_exception",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemMailLogDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemMailLogDao(handlers ...gdb.ModelHandler) *SystemMailLogDao {
|
||||
return &SystemMailLogDao{
|
||||
group: "default",
|
||||
table: "system_mail_log",
|
||||
columns: systemMailLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemMailLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemMailLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemMailLogDao) Columns() SystemMailLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemMailLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemMailLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemMailLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_mail_template.go
Normal file
107
internal/dao/internal/system_mail_template.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemMailTemplateDao is the data access object for the table system_mail_template.
|
||||
type SystemMailTemplateDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemMailTemplateColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemMailTemplateColumns defines and stores column names for the table system_mail_template.
|
||||
type SystemMailTemplateColumns struct {
|
||||
Id string // 编号
|
||||
Name string // 模板名称
|
||||
Code string // 模板编码
|
||||
AccountId string // 发送的邮箱账号编号
|
||||
Nickname string // 发送人名称
|
||||
Title string // 模板标题
|
||||
Content string // 模板内容
|
||||
Params string // 参数数组
|
||||
Status string // 开启状态
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemMailTemplateColumns holds the columns for the table system_mail_template.
|
||||
var systemMailTemplateColumns = SystemMailTemplateColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Code: "code",
|
||||
AccountId: "account_id",
|
||||
Nickname: "nickname",
|
||||
Title: "title",
|
||||
Content: "content",
|
||||
Params: "params",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemMailTemplateDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemMailTemplateDao(handlers ...gdb.ModelHandler) *SystemMailTemplateDao {
|
||||
return &SystemMailTemplateDao{
|
||||
group: "default",
|
||||
table: "system_mail_template",
|
||||
columns: systemMailTemplateColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemMailTemplateDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemMailTemplateDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemMailTemplateDao) Columns() SystemMailTemplateColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemMailTemplateDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemMailTemplateDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemMailTemplateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
115
internal/dao/internal/system_menu.go
Normal file
115
internal/dao/internal/system_menu.go
Normal file
@@ -0,0 +1,115 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemMenuDao is the data access object for the table system_menu.
|
||||
type SystemMenuDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemMenuColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemMenuColumns defines and stores column names for the table system_menu.
|
||||
type SystemMenuColumns struct {
|
||||
Id string // 菜单ID
|
||||
Name string // 菜单名称
|
||||
Permission string // 权限标识
|
||||
Type string // 菜单类型
|
||||
Sort string // 显示顺序
|
||||
ParentId string // 父菜单ID
|
||||
Path string // 路由地址
|
||||
Icon string // 菜单图标
|
||||
Component string // 组件路径
|
||||
ComponentName string // 组件名
|
||||
Status string // 菜单状态
|
||||
Visible string // 是否可见
|
||||
KeepAlive string // 是否缓存
|
||||
AlwaysShow string // 是否总是显示
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemMenuColumns holds the columns for the table system_menu.
|
||||
var systemMenuColumns = SystemMenuColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Permission: "permission",
|
||||
Type: "type",
|
||||
Sort: "sort",
|
||||
ParentId: "parent_id",
|
||||
Path: "path",
|
||||
Icon: "icon",
|
||||
Component: "component",
|
||||
ComponentName: "component_name",
|
||||
Status: "status",
|
||||
Visible: "visible",
|
||||
KeepAlive: "keep_alive",
|
||||
AlwaysShow: "always_show",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemMenuDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemMenuDao(handlers ...gdb.ModelHandler) *SystemMenuDao {
|
||||
return &SystemMenuDao{
|
||||
group: "default",
|
||||
table: "system_menu",
|
||||
columns: systemMenuColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemMenuDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemMenuDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemMenuDao) Columns() SystemMenuColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemMenuDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemMenuDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemMenuDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/dao/internal/system_notice.go
Normal file
99
internal/dao/internal/system_notice.go
Normal file
@@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemNoticeDao is the data access object for the table system_notice.
|
||||
type SystemNoticeDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemNoticeColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemNoticeColumns defines and stores column names for the table system_notice.
|
||||
type SystemNoticeColumns struct {
|
||||
Id string // 公告ID
|
||||
Title string // 公告标题
|
||||
Content string // 公告内容
|
||||
Type string // 公告类型(1通知 2公告)
|
||||
Status string // 公告状态(0正常 1关闭)
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemNoticeColumns holds the columns for the table system_notice.
|
||||
var systemNoticeColumns = SystemNoticeColumns{
|
||||
Id: "id",
|
||||
Title: "title",
|
||||
Content: "content",
|
||||
Type: "type",
|
||||
Status: "status",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemNoticeDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemNoticeDao(handlers ...gdb.ModelHandler) *SystemNoticeDao {
|
||||
return &SystemNoticeDao{
|
||||
group: "default",
|
||||
table: "system_notice",
|
||||
columns: systemNoticeColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemNoticeDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemNoticeDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemNoticeDao) Columns() SystemNoticeColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemNoticeDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemNoticeDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemNoticeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
111
internal/dao/internal/system_notify_message.go
Normal file
111
internal/dao/internal/system_notify_message.go
Normal file
@@ -0,0 +1,111 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemNotifyMessageDao is the data access object for the table system_notify_message.
|
||||
type SystemNotifyMessageDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemNotifyMessageColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemNotifyMessageColumns defines and stores column names for the table system_notify_message.
|
||||
type SystemNotifyMessageColumns struct {
|
||||
Id string // 用户ID
|
||||
UserId string // 用户id
|
||||
UserType string // 用户类型
|
||||
TemplateId string // 模版编号
|
||||
TemplateCode string // 模板编码
|
||||
TemplateNickname string // 模版发送人名称
|
||||
TemplateContent string // 模版内容
|
||||
TemplateType string // 模版类型
|
||||
TemplateParams string // 模版参数
|
||||
ReadStatus string // 是否已读
|
||||
ReadTime string // 阅读时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemNotifyMessageColumns holds the columns for the table system_notify_message.
|
||||
var systemNotifyMessageColumns = SystemNotifyMessageColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
TemplateId: "template_id",
|
||||
TemplateCode: "template_code",
|
||||
TemplateNickname: "template_nickname",
|
||||
TemplateContent: "template_content",
|
||||
TemplateType: "template_type",
|
||||
TemplateParams: "template_params",
|
||||
ReadStatus: "read_status",
|
||||
ReadTime: "read_time",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemNotifyMessageDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemNotifyMessageDao(handlers ...gdb.ModelHandler) *SystemNotifyMessageDao {
|
||||
return &SystemNotifyMessageDao{
|
||||
group: "default",
|
||||
table: "system_notify_message",
|
||||
columns: systemNotifyMessageColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemNotifyMessageDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemNotifyMessageDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemNotifyMessageDao) Columns() SystemNotifyMessageColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemNotifyMessageDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemNotifyMessageDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemNotifyMessageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/system_notify_template.go
Normal file
105
internal/dao/internal/system_notify_template.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemNotifyTemplateDao is the data access object for the table system_notify_template.
|
||||
type SystemNotifyTemplateDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemNotifyTemplateColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemNotifyTemplateColumns defines and stores column names for the table system_notify_template.
|
||||
type SystemNotifyTemplateColumns struct {
|
||||
Id string // 主键
|
||||
Name string // 模板名称
|
||||
Code string // 模版编码
|
||||
Nickname string // 发送人名称
|
||||
Content string // 模版内容
|
||||
Type string // 类型
|
||||
Params string // 参数数组
|
||||
Status string // 状态
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemNotifyTemplateColumns holds the columns for the table system_notify_template.
|
||||
var systemNotifyTemplateColumns = SystemNotifyTemplateColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Code: "code",
|
||||
Nickname: "nickname",
|
||||
Content: "content",
|
||||
Type: "type",
|
||||
Params: "params",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemNotifyTemplateDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemNotifyTemplateDao(handlers ...gdb.ModelHandler) *SystemNotifyTemplateDao {
|
||||
return &SystemNotifyTemplateDao{
|
||||
group: "default",
|
||||
table: "system_notify_template",
|
||||
columns: systemNotifyTemplateColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemNotifyTemplateDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemNotifyTemplateDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemNotifyTemplateDao) Columns() SystemNotifyTemplateColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemNotifyTemplateDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemNotifyTemplateDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemNotifyTemplateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_oauth_2_access_token.go
Normal file
107
internal/dao/internal/system_oauth_2_access_token.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOauth2AccessTokenDao is the data access object for the table system_oauth2_access_token.
|
||||
type SystemOauth2AccessTokenDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOauth2AccessTokenColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOauth2AccessTokenColumns defines and stores column names for the table system_oauth2_access_token.
|
||||
type SystemOauth2AccessTokenColumns struct {
|
||||
Id string // 编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
UserInfo string // 用户信息
|
||||
AccessToken string // 访问令牌
|
||||
RefreshToken string // 刷新令牌
|
||||
ClientId string // 客户端编号
|
||||
Scopes string // 授权范围
|
||||
ExpiresTime string // 过期时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemOauth2AccessTokenColumns holds the columns for the table system_oauth2_access_token.
|
||||
var systemOauth2AccessTokenColumns = SystemOauth2AccessTokenColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
UserInfo: "user_info",
|
||||
AccessToken: "access_token",
|
||||
RefreshToken: "refresh_token",
|
||||
ClientId: "client_id",
|
||||
Scopes: "scopes",
|
||||
ExpiresTime: "expires_time",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemOauth2AccessTokenDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOauth2AccessTokenDao(handlers ...gdb.ModelHandler) *SystemOauth2AccessTokenDao {
|
||||
return &SystemOauth2AccessTokenDao{
|
||||
group: "default",
|
||||
table: "system_oauth2_access_token",
|
||||
columns: systemOauth2AccessTokenColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOauth2AccessTokenDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOauth2AccessTokenDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOauth2AccessTokenDao) Columns() SystemOauth2AccessTokenColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOauth2AccessTokenDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOauth2AccessTokenDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOauth2AccessTokenDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/system_oauth_2_approve.go
Normal file
103
internal/dao/internal/system_oauth_2_approve.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOauth2ApproveDao is the data access object for the table system_oauth2_approve.
|
||||
type SystemOauth2ApproveDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOauth2ApproveColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOauth2ApproveColumns defines and stores column names for the table system_oauth2_approve.
|
||||
type SystemOauth2ApproveColumns struct {
|
||||
Id string // 编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
ClientId string // 客户端编号
|
||||
Scope string // 授权范围
|
||||
Approved string // 是否接受
|
||||
ExpiresTime string // 过期时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemOauth2ApproveColumns holds the columns for the table system_oauth2_approve.
|
||||
var systemOauth2ApproveColumns = SystemOauth2ApproveColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
ClientId: "client_id",
|
||||
Scope: "scope",
|
||||
Approved: "approved",
|
||||
ExpiresTime: "expires_time",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemOauth2ApproveDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOauth2ApproveDao(handlers ...gdb.ModelHandler) *SystemOauth2ApproveDao {
|
||||
return &SystemOauth2ApproveDao{
|
||||
group: "default",
|
||||
table: "system_oauth2_approve",
|
||||
columns: systemOauth2ApproveColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOauth2ApproveDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOauth2ApproveDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOauth2ApproveDao) Columns() SystemOauth2ApproveColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOauth2ApproveDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOauth2ApproveDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOauth2ApproveDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
119
internal/dao/internal/system_oauth_2_client.go
Normal file
119
internal/dao/internal/system_oauth_2_client.go
Normal file
@@ -0,0 +1,119 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOauth2ClientDao is the data access object for the table system_oauth2_client.
|
||||
type SystemOauth2ClientDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOauth2ClientColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOauth2ClientColumns defines and stores column names for the table system_oauth2_client.
|
||||
type SystemOauth2ClientColumns struct {
|
||||
Id string // 编号
|
||||
ClientId string // 客户端编号
|
||||
Secret string // 客户端密钥
|
||||
Name string // 应用名
|
||||
Logo string // 应用图标
|
||||
Description string // 应用描述
|
||||
Status string // 状态
|
||||
AccessTokenValiditySeconds string // 访问令牌的有效期
|
||||
RefreshTokenValiditySeconds string // 刷新令牌的有效期
|
||||
RedirectUris string // 可重定向的 URI 地址
|
||||
AuthorizedGrantTypes string // 授权类型
|
||||
Scopes string // 授权范围
|
||||
AutoApproveScopes string // 自动通过的授权范围
|
||||
Authorities string // 权限
|
||||
ResourceIds string // 资源
|
||||
AdditionalInformation string // 附加信息
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemOauth2ClientColumns holds the columns for the table system_oauth2_client.
|
||||
var systemOauth2ClientColumns = SystemOauth2ClientColumns{
|
||||
Id: "id",
|
||||
ClientId: "client_id",
|
||||
Secret: "secret",
|
||||
Name: "name",
|
||||
Logo: "logo",
|
||||
Description: "description",
|
||||
Status: "status",
|
||||
AccessTokenValiditySeconds: "access_token_validity_seconds",
|
||||
RefreshTokenValiditySeconds: "refresh_token_validity_seconds",
|
||||
RedirectUris: "redirect_uris",
|
||||
AuthorizedGrantTypes: "authorized_grant_types",
|
||||
Scopes: "scopes",
|
||||
AutoApproveScopes: "auto_approve_scopes",
|
||||
Authorities: "authorities",
|
||||
ResourceIds: "resource_ids",
|
||||
AdditionalInformation: "additional_information",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemOauth2ClientDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOauth2ClientDao(handlers ...gdb.ModelHandler) *SystemOauth2ClientDao {
|
||||
return &SystemOauth2ClientDao{
|
||||
group: "default",
|
||||
table: "system_oauth2_client",
|
||||
columns: systemOauth2ClientColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOauth2ClientDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOauth2ClientDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOauth2ClientDao) Columns() SystemOauth2ClientColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOauth2ClientDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOauth2ClientDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOauth2ClientDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_oauth_2_code.go
Normal file
107
internal/dao/internal/system_oauth_2_code.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOauth2CodeDao is the data access object for the table system_oauth2_code.
|
||||
type SystemOauth2CodeDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOauth2CodeColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOauth2CodeColumns defines and stores column names for the table system_oauth2_code.
|
||||
type SystemOauth2CodeColumns struct {
|
||||
Id string // 编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
Code string // 授权码
|
||||
ClientId string // 客户端编号
|
||||
Scopes string // 授权范围
|
||||
ExpiresTime string // 过期时间
|
||||
RedirectUri string // 可重定向的 URI 地址
|
||||
State string // 状态
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemOauth2CodeColumns holds the columns for the table system_oauth2_code.
|
||||
var systemOauth2CodeColumns = SystemOauth2CodeColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
Code: "code",
|
||||
ClientId: "client_id",
|
||||
Scopes: "scopes",
|
||||
ExpiresTime: "expires_time",
|
||||
RedirectUri: "redirect_uri",
|
||||
State: "state",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemOauth2CodeDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOauth2CodeDao(handlers ...gdb.ModelHandler) *SystemOauth2CodeDao {
|
||||
return &SystemOauth2CodeDao{
|
||||
group: "default",
|
||||
table: "system_oauth2_code",
|
||||
columns: systemOauth2CodeColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOauth2CodeDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOauth2CodeDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOauth2CodeDao) Columns() SystemOauth2CodeColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOauth2CodeDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOauth2CodeDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOauth2CodeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/system_oauth_2_refresh_token.go
Normal file
103
internal/dao/internal/system_oauth_2_refresh_token.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOauth2RefreshTokenDao is the data access object for the table system_oauth2_refresh_token.
|
||||
type SystemOauth2RefreshTokenDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOauth2RefreshTokenColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOauth2RefreshTokenColumns defines and stores column names for the table system_oauth2_refresh_token.
|
||||
type SystemOauth2RefreshTokenColumns struct {
|
||||
Id string // 编号
|
||||
UserId string // 用户编号
|
||||
RefreshToken string // 刷新令牌
|
||||
UserType string // 用户类型
|
||||
ClientId string // 客户端编号
|
||||
Scopes string // 授权范围
|
||||
ExpiresTime string // 过期时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemOauth2RefreshTokenColumns holds the columns for the table system_oauth2_refresh_token.
|
||||
var systemOauth2RefreshTokenColumns = SystemOauth2RefreshTokenColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
RefreshToken: "refresh_token",
|
||||
UserType: "user_type",
|
||||
ClientId: "client_id",
|
||||
Scopes: "scopes",
|
||||
ExpiresTime: "expires_time",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemOauth2RefreshTokenDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOauth2RefreshTokenDao(handlers ...gdb.ModelHandler) *SystemOauth2RefreshTokenDao {
|
||||
return &SystemOauth2RefreshTokenDao{
|
||||
group: "default",
|
||||
table: "system_oauth2_refresh_token",
|
||||
columns: systemOauth2RefreshTokenColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOauth2RefreshTokenDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOauth2RefreshTokenDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOauth2RefreshTokenDao) Columns() SystemOauth2RefreshTokenColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOauth2RefreshTokenDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOauth2RefreshTokenDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOauth2RefreshTokenDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
115
internal/dao/internal/system_operate_log.go
Normal file
115
internal/dao/internal/system_operate_log.go
Normal file
@@ -0,0 +1,115 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemOperateLogDao is the data access object for the table system_operate_log.
|
||||
type SystemOperateLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemOperateLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemOperateLogColumns defines and stores column names for the table system_operate_log.
|
||||
type SystemOperateLogColumns struct {
|
||||
Id string // 日志主键
|
||||
TraceId string // 链路追踪编号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
Type string // 操作模块类型
|
||||
SubType string // 操作名
|
||||
BizId string // 操作数据模块编号
|
||||
Action string // 操作内容
|
||||
Extra string // 拓展字段
|
||||
RequestMethod string // 请求方法名
|
||||
RequestUrl string // 请求地址
|
||||
UserIp string // 用户 IP
|
||||
UserAgent string // 浏览器 UA
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemOperateLogColumns holds the columns for the table system_operate_log.
|
||||
var systemOperateLogColumns = SystemOperateLogColumns{
|
||||
Id: "id",
|
||||
TraceId: "trace_id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
Type: "type",
|
||||
SubType: "sub_type",
|
||||
BizId: "biz_id",
|
||||
Action: "action",
|
||||
Extra: "extra",
|
||||
RequestMethod: "request_method",
|
||||
RequestUrl: "request_url",
|
||||
UserIp: "user_ip",
|
||||
UserAgent: "user_agent",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemOperateLogDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemOperateLogDao(handlers ...gdb.ModelHandler) *SystemOperateLogDao {
|
||||
return &SystemOperateLogDao{
|
||||
group: "default",
|
||||
table: "system_operate_log",
|
||||
columns: systemOperateLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemOperateLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemOperateLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemOperateLogDao) Columns() SystemOperateLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemOperateLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemOperateLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemOperateLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
101
internal/dao/internal/system_post.go
Normal file
101
internal/dao/internal/system_post.go
Normal file
@@ -0,0 +1,101 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemPostDao is the data access object for the table system_post.
|
||||
type SystemPostDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemPostColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemPostColumns defines and stores column names for the table system_post.
|
||||
type SystemPostColumns struct {
|
||||
Id string // 岗位ID
|
||||
Code string // 岗位编码
|
||||
Name string // 岗位名称
|
||||
Sort string // 显示顺序
|
||||
Status string // 状态(0正常 1停用)
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemPostColumns holds the columns for the table system_post.
|
||||
var systemPostColumns = SystemPostColumns{
|
||||
Id: "id",
|
||||
Code: "code",
|
||||
Name: "name",
|
||||
Sort: "sort",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemPostDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemPostDao(handlers ...gdb.ModelHandler) *SystemPostDao {
|
||||
return &SystemPostDao{
|
||||
group: "default",
|
||||
table: "system_post",
|
||||
columns: systemPostColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemPostDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemPostDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemPostDao) Columns() SystemPostColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemPostDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemPostDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_role.go
Normal file
107
internal/dao/internal/system_role.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemRoleDao is the data access object for the table system_role.
|
||||
type SystemRoleDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemRoleColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemRoleColumns defines and stores column names for the table system_role.
|
||||
type SystemRoleColumns struct {
|
||||
Id string // 角色ID
|
||||
Name string // 角色名称
|
||||
Code string // 角色权限字符串
|
||||
Sort string // 显示顺序
|
||||
DataScope string // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
|
||||
DataScopeDeptIds string // 数据范围(指定部门数组)
|
||||
Status string // 角色状态(0正常 1停用)
|
||||
Type string // 角色类型
|
||||
Remark string // 备注
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemRoleColumns holds the columns for the table system_role.
|
||||
var systemRoleColumns = SystemRoleColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Code: "code",
|
||||
Sort: "sort",
|
||||
DataScope: "data_scope",
|
||||
DataScopeDeptIds: "data_scope_dept_ids",
|
||||
Status: "status",
|
||||
Type: "type",
|
||||
Remark: "remark",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemRoleDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemRoleDao(handlers ...gdb.ModelHandler) *SystemRoleDao {
|
||||
return &SystemRoleDao{
|
||||
group: "default",
|
||||
table: "system_role",
|
||||
columns: systemRoleColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemRoleDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemRoleDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemRoleDao) Columns() SystemRoleColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemRoleDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemRoleDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
95
internal/dao/internal/system_role_menu.go
Normal file
95
internal/dao/internal/system_role_menu.go
Normal file
@@ -0,0 +1,95 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemRoleMenuDao is the data access object for the table system_role_menu.
|
||||
type SystemRoleMenuDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemRoleMenuColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemRoleMenuColumns defines and stores column names for the table system_role_menu.
|
||||
type SystemRoleMenuColumns struct {
|
||||
Id string // 自增编号
|
||||
RoleId string // 角色ID
|
||||
MenuId string // 菜单ID
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemRoleMenuColumns holds the columns for the table system_role_menu.
|
||||
var systemRoleMenuColumns = SystemRoleMenuColumns{
|
||||
Id: "id",
|
||||
RoleId: "role_id",
|
||||
MenuId: "menu_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemRoleMenuDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemRoleMenuDao(handlers ...gdb.ModelHandler) *SystemRoleMenuDao {
|
||||
return &SystemRoleMenuDao{
|
||||
group: "default",
|
||||
table: "system_role_menu",
|
||||
columns: systemRoleMenuColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemRoleMenuDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemRoleMenuDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemRoleMenuDao) Columns() SystemRoleMenuColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemRoleMenuDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemRoleMenuDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemRoleMenuDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
103
internal/dao/internal/system_sms_channel.go
Normal file
103
internal/dao/internal/system_sms_channel.go
Normal file
@@ -0,0 +1,103 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSmsChannelDao is the data access object for the table system_sms_channel.
|
||||
type SystemSmsChannelDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSmsChannelColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSmsChannelColumns defines and stores column names for the table system_sms_channel.
|
||||
type SystemSmsChannelColumns struct {
|
||||
Id string // 编号
|
||||
Signature string // 短信签名
|
||||
Code string // 渠道编码
|
||||
Status string // 开启状态
|
||||
Remark string // 备注
|
||||
ApiKey string // 短信 API 的账号
|
||||
ApiSecret string // 短信 API 的秘钥
|
||||
CallbackUrl string // 短信发送回调 URL
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemSmsChannelColumns holds the columns for the table system_sms_channel.
|
||||
var systemSmsChannelColumns = SystemSmsChannelColumns{
|
||||
Id: "id",
|
||||
Signature: "signature",
|
||||
Code: "code",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
ApiKey: "api_key",
|
||||
ApiSecret: "api_secret",
|
||||
CallbackUrl: "callback_url",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemSmsChannelDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSmsChannelDao(handlers ...gdb.ModelHandler) *SystemSmsChannelDao {
|
||||
return &SystemSmsChannelDao{
|
||||
group: "default",
|
||||
table: "system_sms_channel",
|
||||
columns: systemSmsChannelColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSmsChannelDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSmsChannelDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSmsChannelDao) Columns() SystemSmsChannelColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSmsChannelDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSmsChannelDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSmsChannelDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_sms_code.go
Normal file
107
internal/dao/internal/system_sms_code.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSmsCodeDao is the data access object for the table system_sms_code.
|
||||
type SystemSmsCodeDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSmsCodeColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSmsCodeColumns defines and stores column names for the table system_sms_code.
|
||||
type SystemSmsCodeColumns struct {
|
||||
Id string // 编号
|
||||
Mobile string // 手机号
|
||||
Code string // 验证码
|
||||
CreateIp string // 创建 IP
|
||||
Scene string // 发送场景
|
||||
TodayIndex string // 今日发送的第几条
|
||||
Used string // 是否使用
|
||||
UsedTime string // 使用时间
|
||||
UsedIp string // 使用 IP
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemSmsCodeColumns holds the columns for the table system_sms_code.
|
||||
var systemSmsCodeColumns = SystemSmsCodeColumns{
|
||||
Id: "id",
|
||||
Mobile: "mobile",
|
||||
Code: "code",
|
||||
CreateIp: "create_ip",
|
||||
Scene: "scene",
|
||||
TodayIndex: "today_index",
|
||||
Used: "used",
|
||||
UsedTime: "used_time",
|
||||
UsedIp: "used_ip",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemSmsCodeDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSmsCodeDao(handlers ...gdb.ModelHandler) *SystemSmsCodeDao {
|
||||
return &SystemSmsCodeDao{
|
||||
group: "default",
|
||||
table: "system_sms_code",
|
||||
columns: systemSmsCodeColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSmsCodeDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSmsCodeDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSmsCodeDao) Columns() SystemSmsCodeColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSmsCodeDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSmsCodeDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSmsCodeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
131
internal/dao/internal/system_sms_log.go
Normal file
131
internal/dao/internal/system_sms_log.go
Normal file
@@ -0,0 +1,131 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSmsLogDao is the data access object for the table system_sms_log.
|
||||
type SystemSmsLogDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSmsLogColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSmsLogColumns defines and stores column names for the table system_sms_log.
|
||||
type SystemSmsLogColumns struct {
|
||||
Id string // 编号
|
||||
ChannelId string // 短信渠道编号
|
||||
ChannelCode string // 短信渠道编码
|
||||
TemplateId string // 模板编号
|
||||
TemplateCode string // 模板编码
|
||||
TemplateType string // 短信类型
|
||||
TemplateContent string // 短信内容
|
||||
TemplateParams string // 短信参数
|
||||
ApiTemplateId string // 短信 API 的模板编号
|
||||
Mobile string // 手机号
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
SendStatus string // 发送状态
|
||||
SendTime string // 发送时间
|
||||
ApiSendCode string // 短信 API 发送结果的编码
|
||||
ApiSendMsg string // 短信 API 发送失败的提示
|
||||
ApiRequestId string // 短信 API 发送返回的唯一请求 ID
|
||||
ApiSerialNo string // 短信 API 发送返回的序号
|
||||
ReceiveStatus string // 接收状态
|
||||
ReceiveTime string // 接收时间
|
||||
ApiReceiveCode string // API 接收结果的编码
|
||||
ApiReceiveMsg string // API 接收结果的说明
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemSmsLogColumns holds the columns for the table system_sms_log.
|
||||
var systemSmsLogColumns = SystemSmsLogColumns{
|
||||
Id: "id",
|
||||
ChannelId: "channel_id",
|
||||
ChannelCode: "channel_code",
|
||||
TemplateId: "template_id",
|
||||
TemplateCode: "template_code",
|
||||
TemplateType: "template_type",
|
||||
TemplateContent: "template_content",
|
||||
TemplateParams: "template_params",
|
||||
ApiTemplateId: "api_template_id",
|
||||
Mobile: "mobile",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
SendStatus: "send_status",
|
||||
SendTime: "send_time",
|
||||
ApiSendCode: "api_send_code",
|
||||
ApiSendMsg: "api_send_msg",
|
||||
ApiRequestId: "api_request_id",
|
||||
ApiSerialNo: "api_serial_no",
|
||||
ReceiveStatus: "receive_status",
|
||||
ReceiveTime: "receive_time",
|
||||
ApiReceiveCode: "api_receive_code",
|
||||
ApiReceiveMsg: "api_receive_msg",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemSmsLogDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSmsLogDao(handlers ...gdb.ModelHandler) *SystemSmsLogDao {
|
||||
return &SystemSmsLogDao{
|
||||
group: "default",
|
||||
table: "system_sms_log",
|
||||
columns: systemSmsLogColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSmsLogDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSmsLogDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSmsLogDao) Columns() SystemSmsLogColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSmsLogDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSmsLogDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSmsLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
109
internal/dao/internal/system_sms_template.go
Normal file
109
internal/dao/internal/system_sms_template.go
Normal file
@@ -0,0 +1,109 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSmsTemplateDao is the data access object for the table system_sms_template.
|
||||
type SystemSmsTemplateDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSmsTemplateColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSmsTemplateColumns defines and stores column names for the table system_sms_template.
|
||||
type SystemSmsTemplateColumns struct {
|
||||
Id string // 编号
|
||||
Type string // 模板类型
|
||||
Status string // 开启状态
|
||||
Code string // 模板编码
|
||||
Name string // 模板名称
|
||||
Content string // 模板内容
|
||||
Params string // 参数数组
|
||||
Remark string // 备注
|
||||
ApiTemplateId string // 短信 API 的模板编号
|
||||
ChannelId string // 短信渠道编号
|
||||
ChannelCode string // 短信渠道编码
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemSmsTemplateColumns holds the columns for the table system_sms_template.
|
||||
var systemSmsTemplateColumns = SystemSmsTemplateColumns{
|
||||
Id: "id",
|
||||
Type: "type",
|
||||
Status: "status",
|
||||
Code: "code",
|
||||
Name: "name",
|
||||
Content: "content",
|
||||
Params: "params",
|
||||
Remark: "remark",
|
||||
ApiTemplateId: "api_template_id",
|
||||
ChannelId: "channel_id",
|
||||
ChannelCode: "channel_code",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemSmsTemplateDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSmsTemplateDao(handlers ...gdb.ModelHandler) *SystemSmsTemplateDao {
|
||||
return &SystemSmsTemplateDao{
|
||||
group: "default",
|
||||
table: "system_sms_template",
|
||||
columns: systemSmsTemplateColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSmsTemplateDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSmsTemplateDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSmsTemplateDao) Columns() SystemSmsTemplateColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSmsTemplateDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSmsTemplateDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSmsTemplateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
105
internal/dao/internal/system_social_client.go
Normal file
105
internal/dao/internal/system_social_client.go
Normal file
@@ -0,0 +1,105 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSocialClientDao is the data access object for the table system_social_client.
|
||||
type SystemSocialClientDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSocialClientColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSocialClientColumns defines and stores column names for the table system_social_client.
|
||||
type SystemSocialClientColumns struct {
|
||||
Id string // 编号
|
||||
Name string // 应用名
|
||||
SocialType string // 社交平台的类型
|
||||
UserType string // 用户类型
|
||||
ClientId string // 客户端编号
|
||||
ClientSecret string // 客户端密钥
|
||||
AgentId string // 代理编号
|
||||
Status string // 状态
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemSocialClientColumns holds the columns for the table system_social_client.
|
||||
var systemSocialClientColumns = SystemSocialClientColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
SocialType: "social_type",
|
||||
UserType: "user_type",
|
||||
ClientId: "client_id",
|
||||
ClientSecret: "client_secret",
|
||||
AgentId: "agent_id",
|
||||
Status: "status",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemSocialClientDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSocialClientDao(handlers ...gdb.ModelHandler) *SystemSocialClientDao {
|
||||
return &SystemSocialClientDao{
|
||||
group: "default",
|
||||
table: "system_social_client",
|
||||
columns: systemSocialClientColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSocialClientDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSocialClientDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSocialClientDao) Columns() SystemSocialClientColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSocialClientDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSocialClientDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSocialClientDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
109
internal/dao/internal/system_social_user.go
Normal file
109
internal/dao/internal/system_social_user.go
Normal file
@@ -0,0 +1,109 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSocialUserDao is the data access object for the table system_social_user.
|
||||
type SystemSocialUserDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSocialUserColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSocialUserColumns defines and stores column names for the table system_social_user.
|
||||
type SystemSocialUserColumns struct {
|
||||
Id string // 主键(自增策略)
|
||||
Type string // 社交平台的类型
|
||||
Openid string // 社交 openid
|
||||
Token string // 社交 token
|
||||
RawTokenInfo string // 原始 Token 数据,一般是 JSON 格式
|
||||
Nickname string // 用户昵称
|
||||
Avatar string // 用户头像
|
||||
RawUserInfo string // 原始用户数据,一般是 JSON 格式
|
||||
Code string // 最后一次的认证 code
|
||||
State string // 最后一次的认证 state
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemSocialUserColumns holds the columns for the table system_social_user.
|
||||
var systemSocialUserColumns = SystemSocialUserColumns{
|
||||
Id: "id",
|
||||
Type: "type",
|
||||
Openid: "openid",
|
||||
Token: "token",
|
||||
RawTokenInfo: "raw_token_info",
|
||||
Nickname: "nickname",
|
||||
Avatar: "avatar",
|
||||
RawUserInfo: "raw_user_info",
|
||||
Code: "code",
|
||||
State: "state",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemSocialUserDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSocialUserDao(handlers ...gdb.ModelHandler) *SystemSocialUserDao {
|
||||
return &SystemSocialUserDao{
|
||||
group: "default",
|
||||
table: "system_social_user",
|
||||
columns: systemSocialUserColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSocialUserDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSocialUserDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSocialUserDao) Columns() SystemSocialUserColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSocialUserDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSocialUserDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSocialUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/dao/internal/system_social_user_bind.go
Normal file
99
internal/dao/internal/system_social_user_bind.go
Normal file
@@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemSocialUserBindDao is the data access object for the table system_social_user_bind.
|
||||
type SystemSocialUserBindDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemSocialUserBindColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemSocialUserBindColumns defines and stores column names for the table system_social_user_bind.
|
||||
type SystemSocialUserBindColumns struct {
|
||||
Id string // 主键(自增策略)
|
||||
UserId string // 用户编号
|
||||
UserType string // 用户类型
|
||||
SocialType string // 社交平台的类型
|
||||
SocialUserId string // 社交用户的编号
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemSocialUserBindColumns holds the columns for the table system_social_user_bind.
|
||||
var systemSocialUserBindColumns = SystemSocialUserBindColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserType: "user_type",
|
||||
SocialType: "social_type",
|
||||
SocialUserId: "social_user_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemSocialUserBindDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemSocialUserBindDao(handlers ...gdb.ModelHandler) *SystemSocialUserBindDao {
|
||||
return &SystemSocialUserBindDao{
|
||||
group: "default",
|
||||
table: "system_social_user_bind",
|
||||
columns: systemSocialUserBindColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemSocialUserBindDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemSocialUserBindDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemSocialUserBindDao) Columns() SystemSocialUserBindColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemSocialUserBindDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemSocialUserBindDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemSocialUserBindDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
107
internal/dao/internal/system_tenant.go
Normal file
107
internal/dao/internal/system_tenant.go
Normal file
@@ -0,0 +1,107 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemTenantDao is the data access object for the table system_tenant.
|
||||
type SystemTenantDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemTenantColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemTenantColumns defines and stores column names for the table system_tenant.
|
||||
type SystemTenantColumns struct {
|
||||
Id string // 租户编号
|
||||
Name string // 租户名
|
||||
ContactUserId string // 联系人的用户编号
|
||||
ContactName string // 联系人
|
||||
ContactMobile string // 联系手机
|
||||
Status string // 租户状态(0正常 1停用)
|
||||
Website string // 绑定域名
|
||||
PackageId string // 租户套餐编号
|
||||
ExpireTime string // 过期时间
|
||||
AccountCount string // 账号数量
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemTenantColumns holds the columns for the table system_tenant.
|
||||
var systemTenantColumns = SystemTenantColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
ContactUserId: "contact_user_id",
|
||||
ContactName: "contact_name",
|
||||
ContactMobile: "contact_mobile",
|
||||
Status: "status",
|
||||
Website: "website",
|
||||
PackageId: "package_id",
|
||||
ExpireTime: "expire_time",
|
||||
AccountCount: "account_count",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemTenantDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemTenantDao(handlers ...gdb.ModelHandler) *SystemTenantDao {
|
||||
return &SystemTenantDao{
|
||||
group: "default",
|
||||
table: "system_tenant",
|
||||
columns: systemTenantColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemTenantDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemTenantDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemTenantDao) Columns() SystemTenantColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemTenantDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemTenantDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemTenantDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
97
internal/dao/internal/system_tenant_package.go
Normal file
97
internal/dao/internal/system_tenant_package.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemTenantPackageDao is the data access object for the table system_tenant_package.
|
||||
type SystemTenantPackageDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemTenantPackageColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemTenantPackageColumns defines and stores column names for the table system_tenant_package.
|
||||
type SystemTenantPackageColumns struct {
|
||||
Id string // 套餐编号
|
||||
Name string // 套餐名
|
||||
Status string // 租户状态(0正常 1停用)
|
||||
Remark string // 备注
|
||||
MenuIds string // 关联的菜单编号
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
}
|
||||
|
||||
// systemTenantPackageColumns holds the columns for the table system_tenant_package.
|
||||
var systemTenantPackageColumns = SystemTenantPackageColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Status: "status",
|
||||
Remark: "remark",
|
||||
MenuIds: "menu_ids",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
}
|
||||
|
||||
// NewSystemTenantPackageDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemTenantPackageDao(handlers ...gdb.ModelHandler) *SystemTenantPackageDao {
|
||||
return &SystemTenantPackageDao{
|
||||
group: "default",
|
||||
table: "system_tenant_package",
|
||||
columns: systemTenantPackageColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemTenantPackageDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemTenantPackageDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemTenantPackageDao) Columns() SystemTenantPackageColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemTenantPackageDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemTenantPackageDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemTenantPackageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
95
internal/dao/internal/system_user_post.go
Normal file
95
internal/dao/internal/system_user_post.go
Normal file
@@ -0,0 +1,95 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemUserPostDao is the data access object for the table system_user_post.
|
||||
type SystemUserPostDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemUserPostColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemUserPostColumns defines and stores column names for the table system_user_post.
|
||||
type SystemUserPostColumns struct {
|
||||
Id string // id
|
||||
UserId string // 用户ID
|
||||
PostId string // 岗位ID
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemUserPostColumns holds the columns for the table system_user_post.
|
||||
var systemUserPostColumns = SystemUserPostColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
PostId: "post_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemUserPostDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemUserPostDao(handlers ...gdb.ModelHandler) *SystemUserPostDao {
|
||||
return &SystemUserPostDao{
|
||||
group: "default",
|
||||
table: "system_user_post",
|
||||
columns: systemUserPostColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemUserPostDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemUserPostDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemUserPostDao) Columns() SystemUserPostColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemUserPostDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemUserPostDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
95
internal/dao/internal/system_user_role.go
Normal file
95
internal/dao/internal/system_user_role.go
Normal file
@@ -0,0 +1,95 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemUserRoleDao is the data access object for the table system_user_role.
|
||||
type SystemUserRoleDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemUserRoleColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemUserRoleColumns defines and stores column names for the table system_user_role.
|
||||
type SystemUserRoleColumns struct {
|
||||
Id string // 自增编号
|
||||
UserId string // 用户ID
|
||||
RoleId string // 角色ID
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemUserRoleColumns holds the columns for the table system_user_role.
|
||||
var systemUserRoleColumns = SystemUserRoleColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
RoleId: "role_id",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemUserRoleDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemUserRoleDao(handlers ...gdb.ModelHandler) *SystemUserRoleDao {
|
||||
return &SystemUserRoleDao{
|
||||
group: "default",
|
||||
table: "system_user_role",
|
||||
columns: systemUserRoleColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemUserRoleDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemUserRoleDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemUserRoleDao) Columns() SystemUserRoleColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemUserRoleDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemUserRoleDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemUserRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
117
internal/dao/internal/system_users.go
Normal file
117
internal/dao/internal/system_users.go
Normal file
@@ -0,0 +1,117 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SystemUsersDao is the data access object for the table system_users.
|
||||
type SystemUsersDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns SystemUsersColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// SystemUsersColumns defines and stores column names for the table system_users.
|
||||
type SystemUsersColumns struct {
|
||||
Id string // 用户ID
|
||||
Username string // 用户账号
|
||||
Password string // 密码
|
||||
Nickname string // 用户昵称
|
||||
Remark string // 备注
|
||||
DeptId string // 部门ID
|
||||
PostIds string // 岗位编号数组
|
||||
Email string // 用户邮箱
|
||||
Mobile string // 手机号码
|
||||
Sex string // 用户性别
|
||||
Avatar string // 头像地址
|
||||
Status string // 帐号状态(0正常 1停用)
|
||||
LoginIp string // 最后登录IP
|
||||
LoginDate string // 最后登录时间
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// systemUsersColumns holds the columns for the table system_users.
|
||||
var systemUsersColumns = SystemUsersColumns{
|
||||
Id: "id",
|
||||
Username: "username",
|
||||
Password: "password",
|
||||
Nickname: "nickname",
|
||||
Remark: "remark",
|
||||
DeptId: "dept_id",
|
||||
PostIds: "post_ids",
|
||||
Email: "email",
|
||||
Mobile: "mobile",
|
||||
Sex: "sex",
|
||||
Avatar: "avatar",
|
||||
Status: "status",
|
||||
LoginIp: "login_ip",
|
||||
LoginDate: "login_date",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewSystemUsersDao creates and returns a new DAO object for table data access.
|
||||
func NewSystemUsersDao(handlers ...gdb.ModelHandler) *SystemUsersDao {
|
||||
return &SystemUsersDao{
|
||||
group: "default",
|
||||
table: "system_users",
|
||||
columns: systemUsersColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *SystemUsersDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *SystemUsersDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *SystemUsersDao) Columns() SystemUsersColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *SystemUsersDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *SystemUsersDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *SystemUsersDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
101
internal/dao/internal/yudao_demo_01_contact.go
Normal file
101
internal/dao/internal/yudao_demo_01_contact.go
Normal file
@@ -0,0 +1,101 @@
|
||||
// ==========================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// YudaoDemo01ContactDao is the data access object for the table yudao_demo01_contact.
|
||||
type YudaoDemo01ContactDao struct {
|
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of the current DAO.
|
||||
columns YudaoDemo01ContactColumns // columns contains all the column names of Table for convenient usage.
|
||||
handlers []gdb.ModelHandler // handlers for customized model modification.
|
||||
}
|
||||
|
||||
// YudaoDemo01ContactColumns defines and stores column names for the table yudao_demo01_contact.
|
||||
type YudaoDemo01ContactColumns struct {
|
||||
Id string // 编号
|
||||
Name string // 名字
|
||||
Sex string // 性别
|
||||
Birthday string // 出生年
|
||||
Description string // 简介
|
||||
Avatar string // 头像
|
||||
Creator string // 创建者
|
||||
CreateTime string // 创建时间
|
||||
Updater string // 更新者
|
||||
UpdateTime string // 更新时间
|
||||
Deleted string // 是否删除
|
||||
TenantId string // 租户编号
|
||||
}
|
||||
|
||||
// yudaoDemo01ContactColumns holds the columns for the table yudao_demo01_contact.
|
||||
var yudaoDemo01ContactColumns = YudaoDemo01ContactColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Sex: "sex",
|
||||
Birthday: "birthday",
|
||||
Description: "description",
|
||||
Avatar: "avatar",
|
||||
Creator: "creator",
|
||||
CreateTime: "create_time",
|
||||
Updater: "updater",
|
||||
UpdateTime: "update_time",
|
||||
Deleted: "deleted",
|
||||
TenantId: "tenant_id",
|
||||
}
|
||||
|
||||
// NewYudaoDemo01ContactDao creates and returns a new DAO object for table data access.
|
||||
func NewYudaoDemo01ContactDao(handlers ...gdb.ModelHandler) *YudaoDemo01ContactDao {
|
||||
return &YudaoDemo01ContactDao{
|
||||
group: "default",
|
||||
table: "yudao_demo01_contact",
|
||||
columns: yudaoDemo01ContactColumns,
|
||||
handlers: handlers,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of the current DAO.
|
||||
func (dao *YudaoDemo01ContactDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of the current DAO.
|
||||
func (dao *YudaoDemo01ContactDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of the current DAO.
|
||||
func (dao *YudaoDemo01ContactDao) Columns() YudaoDemo01ContactColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the database configuration group name of the current DAO.
|
||||
func (dao *YudaoDemo01ContactDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
||||
func (dao *YudaoDemo01ContactDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
model := dao.DB().Model(dao.table)
|
||||
for _, handler := range dao.handlers {
|
||||
model = handler(model)
|
||||
}
|
||||
return model.Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note: Do not commit or roll back the transaction in function f,
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *YudaoDemo01ContactDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user