commit 85e3a6540b5721c7985e9fe8351d2c1ac6d04295 Author: hu xiaotong <416314413@163.com> Date: Fri Jun 20 17:17:02 2025 +0800 init diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1fbf887 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* linguist-language=GO \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18646b6 --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2a6e6e9 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..d36cedd --- /dev/null +++ b/README.MD @@ -0,0 +1,4 @@ +# GoFrame Template For SingleRepo + +Quick Start: +- https://goframe.org/quick \ No newline at end of file diff --git a/api/hello/hello.go b/api/hello/hello.go new file mode 100644 index 0000000..74d6ee0 --- /dev/null +++ b/api/hello/hello.go @@ -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) +} diff --git a/api/hello/v1/hello.go b/api/hello/v1/hello.go new file mode 100644 index 0000000..b4dd233 --- /dev/null +++ b/api/hello/v1/hello.go @@ -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"` +} diff --git a/api/hello/v1/hero.go b/api/hello/v1/hero.go new file mode 100644 index 0000000..669b47c --- /dev/null +++ b/api/hello/v1/hero.go @@ -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"` +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..21290f1 --- /dev/null +++ b/go.mod @@ -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 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..76f7aa2 --- /dev/null +++ b/go.sum @@ -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= diff --git a/hack/config.yaml b/hack/config.yaml new file mode 100644 index 0000000..cd94c2a --- /dev/null +++ b/hack/config.yaml @@ -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 \ No newline at end of file diff --git a/hack/hack-cli.mk b/hack/hack-cli.mk new file mode 100644 index 0000000..f4e2ad2 --- /dev/null +++ b/hack/hack-cli.mk @@ -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; \ No newline at end of file diff --git a/hack/hack.mk b/hack/hack.mk new file mode 100644 index 0000000..2f68179 --- /dev/null +++ b/hack/hack.mk @@ -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 \ No newline at end of file diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go new file mode 100644 index 0000000..e62b135 --- /dev/null +++ b/internal/cmd/cmd.go @@ -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 + }, + } +) diff --git a/internal/consts/consts.go b/internal/consts/consts.go new file mode 100644 index 0000000..d709a2b --- /dev/null +++ b/internal/consts/consts.go @@ -0,0 +1 @@ +package consts diff --git a/internal/controller/hello/hello.go b/internal/controller/hello/hello.go new file mode 100644 index 0000000..f72082f --- /dev/null +++ b/internal/controller/hello/hello.go @@ -0,0 +1,5 @@ +// ================================================================================= +// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish. +// ================================================================================= + +package hello diff --git a/internal/controller/hello/hello_new.go b/internal/controller/hello/hello_new.go new file mode 100644 index 0000000..13b54cf --- /dev/null +++ b/internal/controller/hello/hello_new.go @@ -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{} +} + diff --git a/internal/controller/hello/hello_v1_hello.go b/internal/controller/hello/hello_v1_hello.go new file mode 100644 index 0000000..69d4ae6 --- /dev/null +++ b/internal/controller/hello/hello_v1_hello.go @@ -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 +} diff --git a/internal/dao/.gitkeep b/internal/dao/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/internal/dao/epic_artifact_info.go b/internal/dao/epic_artifact_info.go new file mode 100644 index 0000000..a2f8aae --- /dev/null +++ b/internal/dao/epic_artifact_info.go @@ -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. diff --git a/internal/dao/epic_gvg_attack_teams.go b/internal/dao/epic_gvg_attack_teams.go new file mode 100644 index 0000000..db599b8 --- /dev/null +++ b/internal/dao/epic_gvg_attack_teams.go @@ -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. diff --git a/internal/dao/epic_gvg_defense_attack_mapping.go b/internal/dao/epic_gvg_defense_attack_mapping.go new file mode 100644 index 0000000..ea54db7 --- /dev/null +++ b/internal/dao/epic_gvg_defense_attack_mapping.go @@ -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. diff --git a/internal/dao/epic_gvg_defense_teams.go b/internal/dao/epic_gvg_defense_teams.go new file mode 100644 index 0000000..7930a56 --- /dev/null +++ b/internal/dao/epic_gvg_defense_teams.go @@ -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. diff --git a/internal/dao/epic_hero_info.go b/internal/dao/epic_hero_info.go new file mode 100644 index 0000000..a628ad4 --- /dev/null +++ b/internal/dao/epic_hero_info.go @@ -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. diff --git a/internal/dao/epic_hero_user_build.go b/internal/dao/epic_hero_user_build.go new file mode 100644 index 0000000..9fade71 --- /dev/null +++ b/internal/dao/epic_hero_user_build.go @@ -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. diff --git a/internal/dao/fribble_hero_set.go b/internal/dao/fribble_hero_set.go new file mode 100644 index 0000000..24b33ee --- /dev/null +++ b/internal/dao/fribble_hero_set.go @@ -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. diff --git a/internal/dao/gear_set_info.go b/internal/dao/gear_set_info.go new file mode 100644 index 0000000..a50ed8c --- /dev/null +++ b/internal/dao/gear_set_info.go @@ -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. diff --git a/internal/dao/infra_api_access_log.go b/internal/dao/infra_api_access_log.go new file mode 100644 index 0000000..3a43137 --- /dev/null +++ b/internal/dao/infra_api_access_log.go @@ -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. diff --git a/internal/dao/infra_api_error_log.go b/internal/dao/infra_api_error_log.go new file mode 100644 index 0000000..1a12761 --- /dev/null +++ b/internal/dao/infra_api_error_log.go @@ -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. diff --git a/internal/dao/infra_codegen_column.go b/internal/dao/infra_codegen_column.go new file mode 100644 index 0000000..70bb82d --- /dev/null +++ b/internal/dao/infra_codegen_column.go @@ -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. diff --git a/internal/dao/infra_codegen_table.go b/internal/dao/infra_codegen_table.go new file mode 100644 index 0000000..79677e9 --- /dev/null +++ b/internal/dao/infra_codegen_table.go @@ -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. diff --git a/internal/dao/infra_config.go b/internal/dao/infra_config.go new file mode 100644 index 0000000..b8a5873 --- /dev/null +++ b/internal/dao/infra_config.go @@ -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. diff --git a/internal/dao/infra_data_source_config.go b/internal/dao/infra_data_source_config.go new file mode 100644 index 0000000..1718889 --- /dev/null +++ b/internal/dao/infra_data_source_config.go @@ -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. diff --git a/internal/dao/infra_file.go b/internal/dao/infra_file.go new file mode 100644 index 0000000..eff10e2 --- /dev/null +++ b/internal/dao/infra_file.go @@ -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. diff --git a/internal/dao/infra_file_config.go b/internal/dao/infra_file_config.go new file mode 100644 index 0000000..71e11a6 --- /dev/null +++ b/internal/dao/infra_file_config.go @@ -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. diff --git a/internal/dao/infra_file_content.go b/internal/dao/infra_file_content.go new file mode 100644 index 0000000..b1bae7b --- /dev/null +++ b/internal/dao/infra_file_content.go @@ -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. diff --git a/internal/dao/infra_job.go b/internal/dao/infra_job.go new file mode 100644 index 0000000..b179a96 --- /dev/null +++ b/internal/dao/infra_job.go @@ -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. diff --git a/internal/dao/infra_job_log.go b/internal/dao/infra_job_log.go new file mode 100644 index 0000000..555b97a --- /dev/null +++ b/internal/dao/infra_job_log.go @@ -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. diff --git a/internal/dao/internal/epic_artifact_info.go b/internal/dao/internal/epic_artifact_info.go new file mode 100644 index 0000000..f20baff --- /dev/null +++ b/internal/dao/internal/epic_artifact_info.go @@ -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) +} diff --git a/internal/dao/internal/epic_gvg_attack_teams.go b/internal/dao/internal/epic_gvg_attack_teams.go new file mode 100644 index 0000000..3b09acf --- /dev/null +++ b/internal/dao/internal/epic_gvg_attack_teams.go @@ -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) +} diff --git a/internal/dao/internal/epic_gvg_defense_attack_mapping.go b/internal/dao/internal/epic_gvg_defense_attack_mapping.go new file mode 100644 index 0000000..56769ad --- /dev/null +++ b/internal/dao/internal/epic_gvg_defense_attack_mapping.go @@ -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) +} diff --git a/internal/dao/internal/epic_gvg_defense_teams.go b/internal/dao/internal/epic_gvg_defense_teams.go new file mode 100644 index 0000000..9ed63f1 --- /dev/null +++ b/internal/dao/internal/epic_gvg_defense_teams.go @@ -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) +} diff --git a/internal/dao/internal/epic_hero_info.go b/internal/dao/internal/epic_hero_info.go new file mode 100644 index 0000000..bc9c5fd --- /dev/null +++ b/internal/dao/internal/epic_hero_info.go @@ -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) +} diff --git a/internal/dao/internal/epic_hero_user_build.go b/internal/dao/internal/epic_hero_user_build.go new file mode 100644 index 0000000..618b697 --- /dev/null +++ b/internal/dao/internal/epic_hero_user_build.go @@ -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) +} diff --git a/internal/dao/internal/fribble_hero_set.go b/internal/dao/internal/fribble_hero_set.go new file mode 100644 index 0000000..8366b9a --- /dev/null +++ b/internal/dao/internal/fribble_hero_set.go @@ -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) +} diff --git a/internal/dao/internal/gear_set_info.go b/internal/dao/internal/gear_set_info.go new file mode 100644 index 0000000..ac1b652 --- /dev/null +++ b/internal/dao/internal/gear_set_info.go @@ -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) +} diff --git a/internal/dao/internal/infra_api_access_log.go b/internal/dao/internal/infra_api_access_log.go new file mode 100644 index 0000000..97240c1 --- /dev/null +++ b/internal/dao/internal/infra_api_access_log.go @@ -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) +} diff --git a/internal/dao/internal/infra_api_error_log.go b/internal/dao/internal/infra_api_error_log.go new file mode 100644 index 0000000..9bf8920 --- /dev/null +++ b/internal/dao/internal/infra_api_error_log.go @@ -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) +} diff --git a/internal/dao/internal/infra_codegen_column.go b/internal/dao/internal/infra_codegen_column.go new file mode 100644 index 0000000..de2109d --- /dev/null +++ b/internal/dao/internal/infra_codegen_column.go @@ -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) +} diff --git a/internal/dao/internal/infra_codegen_table.go b/internal/dao/internal/infra_codegen_table.go new file mode 100644 index 0000000..5940e07 --- /dev/null +++ b/internal/dao/internal/infra_codegen_table.go @@ -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) +} diff --git a/internal/dao/internal/infra_config.go b/internal/dao/internal/infra_config.go new file mode 100644 index 0000000..5cab566 --- /dev/null +++ b/internal/dao/internal/infra_config.go @@ -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) +} diff --git a/internal/dao/internal/infra_data_source_config.go b/internal/dao/internal/infra_data_source_config.go new file mode 100644 index 0000000..9e7ebb4 --- /dev/null +++ b/internal/dao/internal/infra_data_source_config.go @@ -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) +} diff --git a/internal/dao/internal/infra_file.go b/internal/dao/internal/infra_file.go new file mode 100644 index 0000000..52d2450 --- /dev/null +++ b/internal/dao/internal/infra_file.go @@ -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) +} diff --git a/internal/dao/internal/infra_file_config.go b/internal/dao/internal/infra_file_config.go new file mode 100644 index 0000000..de216e7 --- /dev/null +++ b/internal/dao/internal/infra_file_config.go @@ -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) +} diff --git a/internal/dao/internal/infra_file_content.go b/internal/dao/internal/infra_file_content.go new file mode 100644 index 0000000..60308df --- /dev/null +++ b/internal/dao/internal/infra_file_content.go @@ -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) +} diff --git a/internal/dao/internal/infra_job.go b/internal/dao/internal/infra_job.go new file mode 100644 index 0000000..638e969 --- /dev/null +++ b/internal/dao/internal/infra_job.go @@ -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) +} diff --git a/internal/dao/internal/infra_job_log.go b/internal/dao/internal/infra_job_log.go new file mode 100644 index 0000000..f745504 --- /dev/null +++ b/internal/dao/internal/infra_job_log.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_blob_triggers.go b/internal/dao/internal/qrtz_blob_triggers.go new file mode 100644 index 0000000..fd6f54d --- /dev/null +++ b/internal/dao/internal/qrtz_blob_triggers.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_calendars.go b/internal/dao/internal/qrtz_calendars.go new file mode 100644 index 0000000..4de1abf --- /dev/null +++ b/internal/dao/internal/qrtz_calendars.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_cron_triggers.go b/internal/dao/internal/qrtz_cron_triggers.go new file mode 100644 index 0000000..c83e04b --- /dev/null +++ b/internal/dao/internal/qrtz_cron_triggers.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_fired_triggers.go b/internal/dao/internal/qrtz_fired_triggers.go new file mode 100644 index 0000000..8b17bf2 --- /dev/null +++ b/internal/dao/internal/qrtz_fired_triggers.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_job_details.go b/internal/dao/internal/qrtz_job_details.go new file mode 100644 index 0000000..e7de9f6 --- /dev/null +++ b/internal/dao/internal/qrtz_job_details.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_locks.go b/internal/dao/internal/qrtz_locks.go new file mode 100644 index 0000000..7ec200e --- /dev/null +++ b/internal/dao/internal/qrtz_locks.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_paused_trigger_grps.go b/internal/dao/internal/qrtz_paused_trigger_grps.go new file mode 100644 index 0000000..59f8307 --- /dev/null +++ b/internal/dao/internal/qrtz_paused_trigger_grps.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_scheduler_state.go b/internal/dao/internal/qrtz_scheduler_state.go new file mode 100644 index 0000000..ba09ca6 --- /dev/null +++ b/internal/dao/internal/qrtz_scheduler_state.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_simple_triggers.go b/internal/dao/internal/qrtz_simple_triggers.go new file mode 100644 index 0000000..db0d815 --- /dev/null +++ b/internal/dao/internal/qrtz_simple_triggers.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_simprop_triggers.go b/internal/dao/internal/qrtz_simprop_triggers.go new file mode 100644 index 0000000..b29a5e4 --- /dev/null +++ b/internal/dao/internal/qrtz_simprop_triggers.go @@ -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) +} diff --git a/internal/dao/internal/qrtz_triggers.go b/internal/dao/internal/qrtz_triggers.go new file mode 100644 index 0000000..b40b5c8 --- /dev/null +++ b/internal/dao/internal/qrtz_triggers.go @@ -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) +} diff --git a/internal/dao/internal/system_dept.go b/internal/dao/internal/system_dept.go new file mode 100644 index 0000000..6183de6 --- /dev/null +++ b/internal/dao/internal/system_dept.go @@ -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) +} diff --git a/internal/dao/internal/system_dict_data.go b/internal/dao/internal/system_dict_data.go new file mode 100644 index 0000000..a9885d4 --- /dev/null +++ b/internal/dao/internal/system_dict_data.go @@ -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) +} diff --git a/internal/dao/internal/system_dict_type.go b/internal/dao/internal/system_dict_type.go new file mode 100644 index 0000000..9564a2e --- /dev/null +++ b/internal/dao/internal/system_dict_type.go @@ -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) +} diff --git a/internal/dao/internal/system_login_log.go b/internal/dao/internal/system_login_log.go new file mode 100644 index 0000000..412371e --- /dev/null +++ b/internal/dao/internal/system_login_log.go @@ -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) +} diff --git a/internal/dao/internal/system_mail_account.go b/internal/dao/internal/system_mail_account.go new file mode 100644 index 0000000..b7f1580 --- /dev/null +++ b/internal/dao/internal/system_mail_account.go @@ -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) +} diff --git a/internal/dao/internal/system_mail_log.go b/internal/dao/internal/system_mail_log.go new file mode 100644 index 0000000..330c4f7 --- /dev/null +++ b/internal/dao/internal/system_mail_log.go @@ -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) +} diff --git a/internal/dao/internal/system_mail_template.go b/internal/dao/internal/system_mail_template.go new file mode 100644 index 0000000..8bc5b37 --- /dev/null +++ b/internal/dao/internal/system_mail_template.go @@ -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) +} diff --git a/internal/dao/internal/system_menu.go b/internal/dao/internal/system_menu.go new file mode 100644 index 0000000..807b6e0 --- /dev/null +++ b/internal/dao/internal/system_menu.go @@ -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) +} diff --git a/internal/dao/internal/system_notice.go b/internal/dao/internal/system_notice.go new file mode 100644 index 0000000..85ce9b1 --- /dev/null +++ b/internal/dao/internal/system_notice.go @@ -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) +} diff --git a/internal/dao/internal/system_notify_message.go b/internal/dao/internal/system_notify_message.go new file mode 100644 index 0000000..12c66a3 --- /dev/null +++ b/internal/dao/internal/system_notify_message.go @@ -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) +} diff --git a/internal/dao/internal/system_notify_template.go b/internal/dao/internal/system_notify_template.go new file mode 100644 index 0000000..c495800 --- /dev/null +++ b/internal/dao/internal/system_notify_template.go @@ -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) +} diff --git a/internal/dao/internal/system_oauth_2_access_token.go b/internal/dao/internal/system_oauth_2_access_token.go new file mode 100644 index 0000000..10b0a5a --- /dev/null +++ b/internal/dao/internal/system_oauth_2_access_token.go @@ -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) +} diff --git a/internal/dao/internal/system_oauth_2_approve.go b/internal/dao/internal/system_oauth_2_approve.go new file mode 100644 index 0000000..99fba67 --- /dev/null +++ b/internal/dao/internal/system_oauth_2_approve.go @@ -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) +} diff --git a/internal/dao/internal/system_oauth_2_client.go b/internal/dao/internal/system_oauth_2_client.go new file mode 100644 index 0000000..caddc54 --- /dev/null +++ b/internal/dao/internal/system_oauth_2_client.go @@ -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) +} diff --git a/internal/dao/internal/system_oauth_2_code.go b/internal/dao/internal/system_oauth_2_code.go new file mode 100644 index 0000000..8481730 --- /dev/null +++ b/internal/dao/internal/system_oauth_2_code.go @@ -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) +} diff --git a/internal/dao/internal/system_oauth_2_refresh_token.go b/internal/dao/internal/system_oauth_2_refresh_token.go new file mode 100644 index 0000000..2434f9b --- /dev/null +++ b/internal/dao/internal/system_oauth_2_refresh_token.go @@ -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) +} diff --git a/internal/dao/internal/system_operate_log.go b/internal/dao/internal/system_operate_log.go new file mode 100644 index 0000000..e5b08e9 --- /dev/null +++ b/internal/dao/internal/system_operate_log.go @@ -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) +} diff --git a/internal/dao/internal/system_post.go b/internal/dao/internal/system_post.go new file mode 100644 index 0000000..c8bdeb9 --- /dev/null +++ b/internal/dao/internal/system_post.go @@ -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) +} diff --git a/internal/dao/internal/system_role.go b/internal/dao/internal/system_role.go new file mode 100644 index 0000000..fb3a3f4 --- /dev/null +++ b/internal/dao/internal/system_role.go @@ -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) +} diff --git a/internal/dao/internal/system_role_menu.go b/internal/dao/internal/system_role_menu.go new file mode 100644 index 0000000..d80b314 --- /dev/null +++ b/internal/dao/internal/system_role_menu.go @@ -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) +} diff --git a/internal/dao/internal/system_sms_channel.go b/internal/dao/internal/system_sms_channel.go new file mode 100644 index 0000000..44788dc --- /dev/null +++ b/internal/dao/internal/system_sms_channel.go @@ -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) +} diff --git a/internal/dao/internal/system_sms_code.go b/internal/dao/internal/system_sms_code.go new file mode 100644 index 0000000..6184dbb --- /dev/null +++ b/internal/dao/internal/system_sms_code.go @@ -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) +} diff --git a/internal/dao/internal/system_sms_log.go b/internal/dao/internal/system_sms_log.go new file mode 100644 index 0000000..f67db09 --- /dev/null +++ b/internal/dao/internal/system_sms_log.go @@ -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) +} diff --git a/internal/dao/internal/system_sms_template.go b/internal/dao/internal/system_sms_template.go new file mode 100644 index 0000000..c2e71fe --- /dev/null +++ b/internal/dao/internal/system_sms_template.go @@ -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) +} diff --git a/internal/dao/internal/system_social_client.go b/internal/dao/internal/system_social_client.go new file mode 100644 index 0000000..61bdf7e --- /dev/null +++ b/internal/dao/internal/system_social_client.go @@ -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) +} diff --git a/internal/dao/internal/system_social_user.go b/internal/dao/internal/system_social_user.go new file mode 100644 index 0000000..fd05175 --- /dev/null +++ b/internal/dao/internal/system_social_user.go @@ -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) +} diff --git a/internal/dao/internal/system_social_user_bind.go b/internal/dao/internal/system_social_user_bind.go new file mode 100644 index 0000000..e948b3d --- /dev/null +++ b/internal/dao/internal/system_social_user_bind.go @@ -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) +} diff --git a/internal/dao/internal/system_tenant.go b/internal/dao/internal/system_tenant.go new file mode 100644 index 0000000..eec876e --- /dev/null +++ b/internal/dao/internal/system_tenant.go @@ -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) +} diff --git a/internal/dao/internal/system_tenant_package.go b/internal/dao/internal/system_tenant_package.go new file mode 100644 index 0000000..97144e6 --- /dev/null +++ b/internal/dao/internal/system_tenant_package.go @@ -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) +} diff --git a/internal/dao/internal/system_user_post.go b/internal/dao/internal/system_user_post.go new file mode 100644 index 0000000..508ef37 --- /dev/null +++ b/internal/dao/internal/system_user_post.go @@ -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) +} diff --git a/internal/dao/internal/system_user_role.go b/internal/dao/internal/system_user_role.go new file mode 100644 index 0000000..4f0b8ce --- /dev/null +++ b/internal/dao/internal/system_user_role.go @@ -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) +} diff --git a/internal/dao/internal/system_users.go b/internal/dao/internal/system_users.go new file mode 100644 index 0000000..74c290b --- /dev/null +++ b/internal/dao/internal/system_users.go @@ -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) +} diff --git a/internal/dao/internal/yudao_demo_01_contact.go b/internal/dao/internal/yudao_demo_01_contact.go new file mode 100644 index 0000000..29225e3 --- /dev/null +++ b/internal/dao/internal/yudao_demo_01_contact.go @@ -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) +} diff --git a/internal/dao/internal/yudao_demo_02_category.go b/internal/dao/internal/yudao_demo_02_category.go new file mode 100644 index 0000000..1602156 --- /dev/null +++ b/internal/dao/internal/yudao_demo_02_category.go @@ -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" +) + +// YudaoDemo02CategoryDao is the data access object for the table yudao_demo02_category. +type YudaoDemo02CategoryDao 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 YudaoDemo02CategoryColumns // columns contains all the column names of Table for convenient usage. + handlers []gdb.ModelHandler // handlers for customized model modification. +} + +// YudaoDemo02CategoryColumns defines and stores column names for the table yudao_demo02_category. +type YudaoDemo02CategoryColumns struct { + Id string // 编号 + Name string // 名字 + ParentId string // 父级编号 + Creator string // 创建者 + CreateTime string // 创建时间 + Updater string // 更新者 + UpdateTime string // 更新时间 + Deleted string // 是否删除 + TenantId string // 租户编号 +} + +// yudaoDemo02CategoryColumns holds the columns for the table yudao_demo02_category. +var yudaoDemo02CategoryColumns = YudaoDemo02CategoryColumns{ + Id: "id", + Name: "name", + ParentId: "parent_id", + Creator: "creator", + CreateTime: "create_time", + Updater: "updater", + UpdateTime: "update_time", + Deleted: "deleted", + TenantId: "tenant_id", +} + +// NewYudaoDemo02CategoryDao creates and returns a new DAO object for table data access. +func NewYudaoDemo02CategoryDao(handlers ...gdb.ModelHandler) *YudaoDemo02CategoryDao { + return &YudaoDemo02CategoryDao{ + group: "default", + table: "yudao_demo02_category", + columns: yudaoDemo02CategoryColumns, + handlers: handlers, + } +} + +// DB retrieves and returns the underlying raw database management object of the current DAO. +func (dao *YudaoDemo02CategoryDao) DB() gdb.DB { + return g.DB(dao.group) +} + +// Table returns the table name of the current DAO. +func (dao *YudaoDemo02CategoryDao) Table() string { + return dao.table +} + +// Columns returns all column names of the current DAO. +func (dao *YudaoDemo02CategoryDao) Columns() YudaoDemo02CategoryColumns { + return dao.columns +} + +// Group returns the database configuration group name of the current DAO. +func (dao *YudaoDemo02CategoryDao) 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 *YudaoDemo02CategoryDao) 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 *YudaoDemo02CategoryDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) { + return dao.Ctx(ctx).Transaction(ctx, f) +} diff --git a/internal/dao/internal/yudao_demo_03_course.go b/internal/dao/internal/yudao_demo_03_course.go new file mode 100644 index 0000000..adbca80 --- /dev/null +++ b/internal/dao/internal/yudao_demo_03_course.go @@ -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" +) + +// YudaoDemo03CourseDao is the data access object for the table yudao_demo03_course. +type YudaoDemo03CourseDao 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 YudaoDemo03CourseColumns // columns contains all the column names of Table for convenient usage. + handlers []gdb.ModelHandler // handlers for customized model modification. +} + +// YudaoDemo03CourseColumns defines and stores column names for the table yudao_demo03_course. +type YudaoDemo03CourseColumns struct { + Id string // 编号 + StudentId string // 学生编号 + Name string // 名字 + Score string // 分数 + Creator string // 创建者 + CreateTime string // 创建时间 + Updater string // 更新者 + UpdateTime string // 更新时间 + Deleted string // 是否删除 + TenantId string // 租户编号 +} + +// yudaoDemo03CourseColumns holds the columns for the table yudao_demo03_course. +var yudaoDemo03CourseColumns = YudaoDemo03CourseColumns{ + Id: "id", + StudentId: "student_id", + Name: "name", + Score: "score", + Creator: "creator", + CreateTime: "create_time", + Updater: "updater", + UpdateTime: "update_time", + Deleted: "deleted", + TenantId: "tenant_id", +} + +// NewYudaoDemo03CourseDao creates and returns a new DAO object for table data access. +func NewYudaoDemo03CourseDao(handlers ...gdb.ModelHandler) *YudaoDemo03CourseDao { + return &YudaoDemo03CourseDao{ + group: "default", + table: "yudao_demo03_course", + columns: yudaoDemo03CourseColumns, + handlers: handlers, + } +} + +// DB retrieves and returns the underlying raw database management object of the current DAO. +func (dao *YudaoDemo03CourseDao) DB() gdb.DB { + return g.DB(dao.group) +} + +// Table returns the table name of the current DAO. +func (dao *YudaoDemo03CourseDao) Table() string { + return dao.table +} + +// Columns returns all column names of the current DAO. +func (dao *YudaoDemo03CourseDao) Columns() YudaoDemo03CourseColumns { + return dao.columns +} + +// Group returns the database configuration group name of the current DAO. +func (dao *YudaoDemo03CourseDao) 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 *YudaoDemo03CourseDao) 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 *YudaoDemo03CourseDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) { + return dao.Ctx(ctx).Transaction(ctx, f) +} diff --git a/internal/dao/internal/yudao_demo_03_grade.go b/internal/dao/internal/yudao_demo_03_grade.go new file mode 100644 index 0000000..16d2c9d --- /dev/null +++ b/internal/dao/internal/yudao_demo_03_grade.go @@ -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" +) + +// YudaoDemo03GradeDao is the data access object for the table yudao_demo03_grade. +type YudaoDemo03GradeDao 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 YudaoDemo03GradeColumns // columns contains all the column names of Table for convenient usage. + handlers []gdb.ModelHandler // handlers for customized model modification. +} + +// YudaoDemo03GradeColumns defines and stores column names for the table yudao_demo03_grade. +type YudaoDemo03GradeColumns struct { + Id string // 编号 + StudentId string // 学生编号 + Name string // 名字 + Teacher string // 班主任 + Creator string // 创建者 + CreateTime string // 创建时间 + Updater string // 更新者 + UpdateTime string // 更新时间 + Deleted string // 是否删除 + TenantId string // 租户编号 +} + +// yudaoDemo03GradeColumns holds the columns for the table yudao_demo03_grade. +var yudaoDemo03GradeColumns = YudaoDemo03GradeColumns{ + Id: "id", + StudentId: "student_id", + Name: "name", + Teacher: "teacher", + Creator: "creator", + CreateTime: "create_time", + Updater: "updater", + UpdateTime: "update_time", + Deleted: "deleted", + TenantId: "tenant_id", +} + +// NewYudaoDemo03GradeDao creates and returns a new DAO object for table data access. +func NewYudaoDemo03GradeDao(handlers ...gdb.ModelHandler) *YudaoDemo03GradeDao { + return &YudaoDemo03GradeDao{ + group: "default", + table: "yudao_demo03_grade", + columns: yudaoDemo03GradeColumns, + handlers: handlers, + } +} + +// DB retrieves and returns the underlying raw database management object of the current DAO. +func (dao *YudaoDemo03GradeDao) DB() gdb.DB { + return g.DB(dao.group) +} + +// Table returns the table name of the current DAO. +func (dao *YudaoDemo03GradeDao) Table() string { + return dao.table +} + +// Columns returns all column names of the current DAO. +func (dao *YudaoDemo03GradeDao) Columns() YudaoDemo03GradeColumns { + return dao.columns +} + +// Group returns the database configuration group name of the current DAO. +func (dao *YudaoDemo03GradeDao) 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 *YudaoDemo03GradeDao) 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 *YudaoDemo03GradeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) { + return dao.Ctx(ctx).Transaction(ctx, f) +} diff --git a/internal/dao/internal/yudao_demo_03_student.go b/internal/dao/internal/yudao_demo_03_student.go new file mode 100644 index 0000000..4c8a272 --- /dev/null +++ b/internal/dao/internal/yudao_demo_03_student.go @@ -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" +) + +// YudaoDemo03StudentDao is the data access object for the table yudao_demo03_student. +type YudaoDemo03StudentDao 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 YudaoDemo03StudentColumns // columns contains all the column names of Table for convenient usage. + handlers []gdb.ModelHandler // handlers for customized model modification. +} + +// YudaoDemo03StudentColumns defines and stores column names for the table yudao_demo03_student. +type YudaoDemo03StudentColumns struct { + Id string // 编号 + Name string // 名字 + Sex string // 性别 + Birthday string // 出生日期 + Description string // 简介 + Creator string // 创建者 + CreateTime string // 创建时间 + Updater string // 更新者 + UpdateTime string // 更新时间 + Deleted string // 是否删除 + TenantId string // 租户编号 +} + +// yudaoDemo03StudentColumns holds the columns for the table yudao_demo03_student. +var yudaoDemo03StudentColumns = YudaoDemo03StudentColumns{ + Id: "id", + Name: "name", + Sex: "sex", + Birthday: "birthday", + Description: "description", + Creator: "creator", + CreateTime: "create_time", + Updater: "updater", + UpdateTime: "update_time", + Deleted: "deleted", + TenantId: "tenant_id", +} + +// NewYudaoDemo03StudentDao creates and returns a new DAO object for table data access. +func NewYudaoDemo03StudentDao(handlers ...gdb.ModelHandler) *YudaoDemo03StudentDao { + return &YudaoDemo03StudentDao{ + group: "default", + table: "yudao_demo03_student", + columns: yudaoDemo03StudentColumns, + handlers: handlers, + } +} + +// DB retrieves and returns the underlying raw database management object of the current DAO. +func (dao *YudaoDemo03StudentDao) DB() gdb.DB { + return g.DB(dao.group) +} + +// Table returns the table name of the current DAO. +func (dao *YudaoDemo03StudentDao) Table() string { + return dao.table +} + +// Columns returns all column names of the current DAO. +func (dao *YudaoDemo03StudentDao) Columns() YudaoDemo03StudentColumns { + return dao.columns +} + +// Group returns the database configuration group name of the current DAO. +func (dao *YudaoDemo03StudentDao) 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 *YudaoDemo03StudentDao) 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 *YudaoDemo03StudentDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) { + return dao.Ctx(ctx).Transaction(ctx, f) +} diff --git a/internal/dao/qrtz_blob_triggers.go b/internal/dao/qrtz_blob_triggers.go new file mode 100644 index 0000000..42858c6 --- /dev/null +++ b/internal/dao/qrtz_blob_triggers.go @@ -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" +) + +// qrtzBlobTriggersDao is the data access object for the table qrtz_blob_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzBlobTriggersDao struct { + *internal.QrtzBlobTriggersDao +} + +var ( + // QrtzBlobTriggers is a globally accessible object for table qrtz_blob_triggers operations. + QrtzBlobTriggers = qrtzBlobTriggersDao{internal.NewQrtzBlobTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_calendars.go b/internal/dao/qrtz_calendars.go new file mode 100644 index 0000000..9304182 --- /dev/null +++ b/internal/dao/qrtz_calendars.go @@ -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" +) + +// qrtzCalendarsDao is the data access object for the table qrtz_calendars. +// You can define custom methods on it to extend its functionality as needed. +type qrtzCalendarsDao struct { + *internal.QrtzCalendarsDao +} + +var ( + // QrtzCalendars is a globally accessible object for table qrtz_calendars operations. + QrtzCalendars = qrtzCalendarsDao{internal.NewQrtzCalendarsDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_cron_triggers.go b/internal/dao/qrtz_cron_triggers.go new file mode 100644 index 0000000..3ae162e --- /dev/null +++ b/internal/dao/qrtz_cron_triggers.go @@ -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" +) + +// qrtzCronTriggersDao is the data access object for the table qrtz_cron_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzCronTriggersDao struct { + *internal.QrtzCronTriggersDao +} + +var ( + // QrtzCronTriggers is a globally accessible object for table qrtz_cron_triggers operations. + QrtzCronTriggers = qrtzCronTriggersDao{internal.NewQrtzCronTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_fired_triggers.go b/internal/dao/qrtz_fired_triggers.go new file mode 100644 index 0000000..752ac6e --- /dev/null +++ b/internal/dao/qrtz_fired_triggers.go @@ -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" +) + +// qrtzFiredTriggersDao is the data access object for the table qrtz_fired_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzFiredTriggersDao struct { + *internal.QrtzFiredTriggersDao +} + +var ( + // QrtzFiredTriggers is a globally accessible object for table qrtz_fired_triggers operations. + QrtzFiredTriggers = qrtzFiredTriggersDao{internal.NewQrtzFiredTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_job_details.go b/internal/dao/qrtz_job_details.go new file mode 100644 index 0000000..485cc63 --- /dev/null +++ b/internal/dao/qrtz_job_details.go @@ -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" +) + +// qrtzJobDetailsDao is the data access object for the table qrtz_job_details. +// You can define custom methods on it to extend its functionality as needed. +type qrtzJobDetailsDao struct { + *internal.QrtzJobDetailsDao +} + +var ( + // QrtzJobDetails is a globally accessible object for table qrtz_job_details operations. + QrtzJobDetails = qrtzJobDetailsDao{internal.NewQrtzJobDetailsDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_locks.go b/internal/dao/qrtz_locks.go new file mode 100644 index 0000000..1eeb159 --- /dev/null +++ b/internal/dao/qrtz_locks.go @@ -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" +) + +// qrtzLocksDao is the data access object for the table qrtz_locks. +// You can define custom methods on it to extend its functionality as needed. +type qrtzLocksDao struct { + *internal.QrtzLocksDao +} + +var ( + // QrtzLocks is a globally accessible object for table qrtz_locks operations. + QrtzLocks = qrtzLocksDao{internal.NewQrtzLocksDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_paused_trigger_grps.go b/internal/dao/qrtz_paused_trigger_grps.go new file mode 100644 index 0000000..37a307a --- /dev/null +++ b/internal/dao/qrtz_paused_trigger_grps.go @@ -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" +) + +// qrtzPausedTriggerGrpsDao is the data access object for the table qrtz_paused_trigger_grps. +// You can define custom methods on it to extend its functionality as needed. +type qrtzPausedTriggerGrpsDao struct { + *internal.QrtzPausedTriggerGrpsDao +} + +var ( + // QrtzPausedTriggerGrps is a globally accessible object for table qrtz_paused_trigger_grps operations. + QrtzPausedTriggerGrps = qrtzPausedTriggerGrpsDao{internal.NewQrtzPausedTriggerGrpsDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_scheduler_state.go b/internal/dao/qrtz_scheduler_state.go new file mode 100644 index 0000000..9cebe0d --- /dev/null +++ b/internal/dao/qrtz_scheduler_state.go @@ -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" +) + +// qrtzSchedulerStateDao is the data access object for the table qrtz_scheduler_state. +// You can define custom methods on it to extend its functionality as needed. +type qrtzSchedulerStateDao struct { + *internal.QrtzSchedulerStateDao +} + +var ( + // QrtzSchedulerState is a globally accessible object for table qrtz_scheduler_state operations. + QrtzSchedulerState = qrtzSchedulerStateDao{internal.NewQrtzSchedulerStateDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_simple_triggers.go b/internal/dao/qrtz_simple_triggers.go new file mode 100644 index 0000000..908e9eb --- /dev/null +++ b/internal/dao/qrtz_simple_triggers.go @@ -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" +) + +// qrtzSimpleTriggersDao is the data access object for the table qrtz_simple_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzSimpleTriggersDao struct { + *internal.QrtzSimpleTriggersDao +} + +var ( + // QrtzSimpleTriggers is a globally accessible object for table qrtz_simple_triggers operations. + QrtzSimpleTriggers = qrtzSimpleTriggersDao{internal.NewQrtzSimpleTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_simprop_triggers.go b/internal/dao/qrtz_simprop_triggers.go new file mode 100644 index 0000000..3af1680 --- /dev/null +++ b/internal/dao/qrtz_simprop_triggers.go @@ -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" +) + +// qrtzSimpropTriggersDao is the data access object for the table qrtz_simprop_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzSimpropTriggersDao struct { + *internal.QrtzSimpropTriggersDao +} + +var ( + // QrtzSimpropTriggers is a globally accessible object for table qrtz_simprop_triggers operations. + QrtzSimpropTriggers = qrtzSimpropTriggersDao{internal.NewQrtzSimpropTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/qrtz_triggers.go b/internal/dao/qrtz_triggers.go new file mode 100644 index 0000000..f852df5 --- /dev/null +++ b/internal/dao/qrtz_triggers.go @@ -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" +) + +// qrtzTriggersDao is the data access object for the table qrtz_triggers. +// You can define custom methods on it to extend its functionality as needed. +type qrtzTriggersDao struct { + *internal.QrtzTriggersDao +} + +var ( + // QrtzTriggers is a globally accessible object for table qrtz_triggers operations. + QrtzTriggers = qrtzTriggersDao{internal.NewQrtzTriggersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_dept.go b/internal/dao/system_dept.go new file mode 100644 index 0000000..6b46e15 --- /dev/null +++ b/internal/dao/system_dept.go @@ -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" +) + +// systemDeptDao is the data access object for the table system_dept. +// You can define custom methods on it to extend its functionality as needed. +type systemDeptDao struct { + *internal.SystemDeptDao +} + +var ( + // SystemDept is a globally accessible object for table system_dept operations. + SystemDept = systemDeptDao{internal.NewSystemDeptDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_dict_data.go b/internal/dao/system_dict_data.go new file mode 100644 index 0000000..3a55c9e --- /dev/null +++ b/internal/dao/system_dict_data.go @@ -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" +) + +// systemDictDataDao is the data access object for the table system_dict_data. +// You can define custom methods on it to extend its functionality as needed. +type systemDictDataDao struct { + *internal.SystemDictDataDao +} + +var ( + // SystemDictData is a globally accessible object for table system_dict_data operations. + SystemDictData = systemDictDataDao{internal.NewSystemDictDataDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_dict_type.go b/internal/dao/system_dict_type.go new file mode 100644 index 0000000..21bb4b5 --- /dev/null +++ b/internal/dao/system_dict_type.go @@ -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" +) + +// systemDictTypeDao is the data access object for the table system_dict_type. +// You can define custom methods on it to extend its functionality as needed. +type systemDictTypeDao struct { + *internal.SystemDictTypeDao +} + +var ( + // SystemDictType is a globally accessible object for table system_dict_type operations. + SystemDictType = systemDictTypeDao{internal.NewSystemDictTypeDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_login_log.go b/internal/dao/system_login_log.go new file mode 100644 index 0000000..c2c926b --- /dev/null +++ b/internal/dao/system_login_log.go @@ -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" +) + +// systemLoginLogDao is the data access object for the table system_login_log. +// You can define custom methods on it to extend its functionality as needed. +type systemLoginLogDao struct { + *internal.SystemLoginLogDao +} + +var ( + // SystemLoginLog is a globally accessible object for table system_login_log operations. + SystemLoginLog = systemLoginLogDao{internal.NewSystemLoginLogDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_mail_account.go b/internal/dao/system_mail_account.go new file mode 100644 index 0000000..b7d643a --- /dev/null +++ b/internal/dao/system_mail_account.go @@ -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" +) + +// systemMailAccountDao is the data access object for the table system_mail_account. +// You can define custom methods on it to extend its functionality as needed. +type systemMailAccountDao struct { + *internal.SystemMailAccountDao +} + +var ( + // SystemMailAccount is a globally accessible object for table system_mail_account operations. + SystemMailAccount = systemMailAccountDao{internal.NewSystemMailAccountDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_mail_log.go b/internal/dao/system_mail_log.go new file mode 100644 index 0000000..0af3275 --- /dev/null +++ b/internal/dao/system_mail_log.go @@ -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" +) + +// systemMailLogDao is the data access object for the table system_mail_log. +// You can define custom methods on it to extend its functionality as needed. +type systemMailLogDao struct { + *internal.SystemMailLogDao +} + +var ( + // SystemMailLog is a globally accessible object for table system_mail_log operations. + SystemMailLog = systemMailLogDao{internal.NewSystemMailLogDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_mail_template.go b/internal/dao/system_mail_template.go new file mode 100644 index 0000000..7a47143 --- /dev/null +++ b/internal/dao/system_mail_template.go @@ -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" +) + +// systemMailTemplateDao is the data access object for the table system_mail_template. +// You can define custom methods on it to extend its functionality as needed. +type systemMailTemplateDao struct { + *internal.SystemMailTemplateDao +} + +var ( + // SystemMailTemplate is a globally accessible object for table system_mail_template operations. + SystemMailTemplate = systemMailTemplateDao{internal.NewSystemMailTemplateDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_menu.go b/internal/dao/system_menu.go new file mode 100644 index 0000000..50f4c1a --- /dev/null +++ b/internal/dao/system_menu.go @@ -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" +) + +// systemMenuDao is the data access object for the table system_menu. +// You can define custom methods on it to extend its functionality as needed. +type systemMenuDao struct { + *internal.SystemMenuDao +} + +var ( + // SystemMenu is a globally accessible object for table system_menu operations. + SystemMenu = systemMenuDao{internal.NewSystemMenuDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_notice.go b/internal/dao/system_notice.go new file mode 100644 index 0000000..025c794 --- /dev/null +++ b/internal/dao/system_notice.go @@ -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" +) + +// systemNoticeDao is the data access object for the table system_notice. +// You can define custom methods on it to extend its functionality as needed. +type systemNoticeDao struct { + *internal.SystemNoticeDao +} + +var ( + // SystemNotice is a globally accessible object for table system_notice operations. + SystemNotice = systemNoticeDao{internal.NewSystemNoticeDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_notify_message.go b/internal/dao/system_notify_message.go new file mode 100644 index 0000000..1fee664 --- /dev/null +++ b/internal/dao/system_notify_message.go @@ -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" +) + +// systemNotifyMessageDao is the data access object for the table system_notify_message. +// You can define custom methods on it to extend its functionality as needed. +type systemNotifyMessageDao struct { + *internal.SystemNotifyMessageDao +} + +var ( + // SystemNotifyMessage is a globally accessible object for table system_notify_message operations. + SystemNotifyMessage = systemNotifyMessageDao{internal.NewSystemNotifyMessageDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_notify_template.go b/internal/dao/system_notify_template.go new file mode 100644 index 0000000..6bd132b --- /dev/null +++ b/internal/dao/system_notify_template.go @@ -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" +) + +// systemNotifyTemplateDao is the data access object for the table system_notify_template. +// You can define custom methods on it to extend its functionality as needed. +type systemNotifyTemplateDao struct { + *internal.SystemNotifyTemplateDao +} + +var ( + // SystemNotifyTemplate is a globally accessible object for table system_notify_template operations. + SystemNotifyTemplate = systemNotifyTemplateDao{internal.NewSystemNotifyTemplateDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_oauth_2_access_token.go b/internal/dao/system_oauth_2_access_token.go new file mode 100644 index 0000000..2afa239 --- /dev/null +++ b/internal/dao/system_oauth_2_access_token.go @@ -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" +) + +// systemOauth2AccessTokenDao is the data access object for the table system_oauth2_access_token. +// You can define custom methods on it to extend its functionality as needed. +type systemOauth2AccessTokenDao struct { + *internal.SystemOauth2AccessTokenDao +} + +var ( + // SystemOauth2AccessToken is a globally accessible object for table system_oauth2_access_token operations. + SystemOauth2AccessToken = systemOauth2AccessTokenDao{internal.NewSystemOauth2AccessTokenDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_oauth_2_approve.go b/internal/dao/system_oauth_2_approve.go new file mode 100644 index 0000000..3cf7e78 --- /dev/null +++ b/internal/dao/system_oauth_2_approve.go @@ -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" +) + +// systemOauth2ApproveDao is the data access object for the table system_oauth2_approve. +// You can define custom methods on it to extend its functionality as needed. +type systemOauth2ApproveDao struct { + *internal.SystemOauth2ApproveDao +} + +var ( + // SystemOauth2Approve is a globally accessible object for table system_oauth2_approve operations. + SystemOauth2Approve = systemOauth2ApproveDao{internal.NewSystemOauth2ApproveDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_oauth_2_client.go b/internal/dao/system_oauth_2_client.go new file mode 100644 index 0000000..e1091da --- /dev/null +++ b/internal/dao/system_oauth_2_client.go @@ -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" +) + +// systemOauth2ClientDao is the data access object for the table system_oauth2_client. +// You can define custom methods on it to extend its functionality as needed. +type systemOauth2ClientDao struct { + *internal.SystemOauth2ClientDao +} + +var ( + // SystemOauth2Client is a globally accessible object for table system_oauth2_client operations. + SystemOauth2Client = systemOauth2ClientDao{internal.NewSystemOauth2ClientDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_oauth_2_code.go b/internal/dao/system_oauth_2_code.go new file mode 100644 index 0000000..307e0b3 --- /dev/null +++ b/internal/dao/system_oauth_2_code.go @@ -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" +) + +// systemOauth2CodeDao is the data access object for the table system_oauth2_code. +// You can define custom methods on it to extend its functionality as needed. +type systemOauth2CodeDao struct { + *internal.SystemOauth2CodeDao +} + +var ( + // SystemOauth2Code is a globally accessible object for table system_oauth2_code operations. + SystemOauth2Code = systemOauth2CodeDao{internal.NewSystemOauth2CodeDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_oauth_2_refresh_token.go b/internal/dao/system_oauth_2_refresh_token.go new file mode 100644 index 0000000..a78d8dd --- /dev/null +++ b/internal/dao/system_oauth_2_refresh_token.go @@ -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" +) + +// systemOauth2RefreshTokenDao is the data access object for the table system_oauth2_refresh_token. +// You can define custom methods on it to extend its functionality as needed. +type systemOauth2RefreshTokenDao struct { + *internal.SystemOauth2RefreshTokenDao +} + +var ( + // SystemOauth2RefreshToken is a globally accessible object for table system_oauth2_refresh_token operations. + SystemOauth2RefreshToken = systemOauth2RefreshTokenDao{internal.NewSystemOauth2RefreshTokenDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_operate_log.go b/internal/dao/system_operate_log.go new file mode 100644 index 0000000..2cc09b2 --- /dev/null +++ b/internal/dao/system_operate_log.go @@ -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" +) + +// systemOperateLogDao is the data access object for the table system_operate_log. +// You can define custom methods on it to extend its functionality as needed. +type systemOperateLogDao struct { + *internal.SystemOperateLogDao +} + +var ( + // SystemOperateLog is a globally accessible object for table system_operate_log operations. + SystemOperateLog = systemOperateLogDao{internal.NewSystemOperateLogDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_post.go b/internal/dao/system_post.go new file mode 100644 index 0000000..0f8793e --- /dev/null +++ b/internal/dao/system_post.go @@ -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" +) + +// systemPostDao is the data access object for the table system_post. +// You can define custom methods on it to extend its functionality as needed. +type systemPostDao struct { + *internal.SystemPostDao +} + +var ( + // SystemPost is a globally accessible object for table system_post operations. + SystemPost = systemPostDao{internal.NewSystemPostDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_role.go b/internal/dao/system_role.go new file mode 100644 index 0000000..b3d25a7 --- /dev/null +++ b/internal/dao/system_role.go @@ -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" +) + +// systemRoleDao is the data access object for the table system_role. +// You can define custom methods on it to extend its functionality as needed. +type systemRoleDao struct { + *internal.SystemRoleDao +} + +var ( + // SystemRole is a globally accessible object for table system_role operations. + SystemRole = systemRoleDao{internal.NewSystemRoleDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_role_menu.go b/internal/dao/system_role_menu.go new file mode 100644 index 0000000..13712af --- /dev/null +++ b/internal/dao/system_role_menu.go @@ -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" +) + +// systemRoleMenuDao is the data access object for the table system_role_menu. +// You can define custom methods on it to extend its functionality as needed. +type systemRoleMenuDao struct { + *internal.SystemRoleMenuDao +} + +var ( + // SystemRoleMenu is a globally accessible object for table system_role_menu operations. + SystemRoleMenu = systemRoleMenuDao{internal.NewSystemRoleMenuDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_sms_channel.go b/internal/dao/system_sms_channel.go new file mode 100644 index 0000000..a63f6e8 --- /dev/null +++ b/internal/dao/system_sms_channel.go @@ -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" +) + +// systemSmsChannelDao is the data access object for the table system_sms_channel. +// You can define custom methods on it to extend its functionality as needed. +type systemSmsChannelDao struct { + *internal.SystemSmsChannelDao +} + +var ( + // SystemSmsChannel is a globally accessible object for table system_sms_channel operations. + SystemSmsChannel = systemSmsChannelDao{internal.NewSystemSmsChannelDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_sms_code.go b/internal/dao/system_sms_code.go new file mode 100644 index 0000000..90f25e3 --- /dev/null +++ b/internal/dao/system_sms_code.go @@ -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" +) + +// systemSmsCodeDao is the data access object for the table system_sms_code. +// You can define custom methods on it to extend its functionality as needed. +type systemSmsCodeDao struct { + *internal.SystemSmsCodeDao +} + +var ( + // SystemSmsCode is a globally accessible object for table system_sms_code operations. + SystemSmsCode = systemSmsCodeDao{internal.NewSystemSmsCodeDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_sms_log.go b/internal/dao/system_sms_log.go new file mode 100644 index 0000000..9090131 --- /dev/null +++ b/internal/dao/system_sms_log.go @@ -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" +) + +// systemSmsLogDao is the data access object for the table system_sms_log. +// You can define custom methods on it to extend its functionality as needed. +type systemSmsLogDao struct { + *internal.SystemSmsLogDao +} + +var ( + // SystemSmsLog is a globally accessible object for table system_sms_log operations. + SystemSmsLog = systemSmsLogDao{internal.NewSystemSmsLogDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_sms_template.go b/internal/dao/system_sms_template.go new file mode 100644 index 0000000..93469cd --- /dev/null +++ b/internal/dao/system_sms_template.go @@ -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" +) + +// systemSmsTemplateDao is the data access object for the table system_sms_template. +// You can define custom methods on it to extend its functionality as needed. +type systemSmsTemplateDao struct { + *internal.SystemSmsTemplateDao +} + +var ( + // SystemSmsTemplate is a globally accessible object for table system_sms_template operations. + SystemSmsTemplate = systemSmsTemplateDao{internal.NewSystemSmsTemplateDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_social_client.go b/internal/dao/system_social_client.go new file mode 100644 index 0000000..6b1740d --- /dev/null +++ b/internal/dao/system_social_client.go @@ -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" +) + +// systemSocialClientDao is the data access object for the table system_social_client. +// You can define custom methods on it to extend its functionality as needed. +type systemSocialClientDao struct { + *internal.SystemSocialClientDao +} + +var ( + // SystemSocialClient is a globally accessible object for table system_social_client operations. + SystemSocialClient = systemSocialClientDao{internal.NewSystemSocialClientDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_social_user.go b/internal/dao/system_social_user.go new file mode 100644 index 0000000..a0b3b87 --- /dev/null +++ b/internal/dao/system_social_user.go @@ -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" +) + +// systemSocialUserDao is the data access object for the table system_social_user. +// You can define custom methods on it to extend its functionality as needed. +type systemSocialUserDao struct { + *internal.SystemSocialUserDao +} + +var ( + // SystemSocialUser is a globally accessible object for table system_social_user operations. + SystemSocialUser = systemSocialUserDao{internal.NewSystemSocialUserDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_social_user_bind.go b/internal/dao/system_social_user_bind.go new file mode 100644 index 0000000..065ab4d --- /dev/null +++ b/internal/dao/system_social_user_bind.go @@ -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" +) + +// systemSocialUserBindDao is the data access object for the table system_social_user_bind. +// You can define custom methods on it to extend its functionality as needed. +type systemSocialUserBindDao struct { + *internal.SystemSocialUserBindDao +} + +var ( + // SystemSocialUserBind is a globally accessible object for table system_social_user_bind operations. + SystemSocialUserBind = systemSocialUserBindDao{internal.NewSystemSocialUserBindDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_tenant.go b/internal/dao/system_tenant.go new file mode 100644 index 0000000..a022a11 --- /dev/null +++ b/internal/dao/system_tenant.go @@ -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" +) + +// systemTenantDao is the data access object for the table system_tenant. +// You can define custom methods on it to extend its functionality as needed. +type systemTenantDao struct { + *internal.SystemTenantDao +} + +var ( + // SystemTenant is a globally accessible object for table system_tenant operations. + SystemTenant = systemTenantDao{internal.NewSystemTenantDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_tenant_package.go b/internal/dao/system_tenant_package.go new file mode 100644 index 0000000..e518c5d --- /dev/null +++ b/internal/dao/system_tenant_package.go @@ -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" +) + +// systemTenantPackageDao is the data access object for the table system_tenant_package. +// You can define custom methods on it to extend its functionality as needed. +type systemTenantPackageDao struct { + *internal.SystemTenantPackageDao +} + +var ( + // SystemTenantPackage is a globally accessible object for table system_tenant_package operations. + SystemTenantPackage = systemTenantPackageDao{internal.NewSystemTenantPackageDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_user_post.go b/internal/dao/system_user_post.go new file mode 100644 index 0000000..0327e75 --- /dev/null +++ b/internal/dao/system_user_post.go @@ -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" +) + +// systemUserPostDao is the data access object for the table system_user_post. +// You can define custom methods on it to extend its functionality as needed. +type systemUserPostDao struct { + *internal.SystemUserPostDao +} + +var ( + // SystemUserPost is a globally accessible object for table system_user_post operations. + SystemUserPost = systemUserPostDao{internal.NewSystemUserPostDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_user_role.go b/internal/dao/system_user_role.go new file mode 100644 index 0000000..acdc3a9 --- /dev/null +++ b/internal/dao/system_user_role.go @@ -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" +) + +// systemUserRoleDao is the data access object for the table system_user_role. +// You can define custom methods on it to extend its functionality as needed. +type systemUserRoleDao struct { + *internal.SystemUserRoleDao +} + +var ( + // SystemUserRole is a globally accessible object for table system_user_role operations. + SystemUserRole = systemUserRoleDao{internal.NewSystemUserRoleDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/system_users.go b/internal/dao/system_users.go new file mode 100644 index 0000000..22d7d20 --- /dev/null +++ b/internal/dao/system_users.go @@ -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" +) + +// systemUsersDao is the data access object for the table system_users. +// You can define custom methods on it to extend its functionality as needed. +type systemUsersDao struct { + *internal.SystemUsersDao +} + +var ( + // SystemUsers is a globally accessible object for table system_users operations. + SystemUsers = systemUsersDao{internal.NewSystemUsersDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/yudao_demo_01_contact.go b/internal/dao/yudao_demo_01_contact.go new file mode 100644 index 0000000..be0fa45 --- /dev/null +++ b/internal/dao/yudao_demo_01_contact.go @@ -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" +) + +// yudaoDemo01ContactDao is the data access object for the table yudao_demo01_contact. +// You can define custom methods on it to extend its functionality as needed. +type yudaoDemo01ContactDao struct { + *internal.YudaoDemo01ContactDao +} + +var ( + // YudaoDemo01Contact is a globally accessible object for table yudao_demo01_contact operations. + YudaoDemo01Contact = yudaoDemo01ContactDao{internal.NewYudaoDemo01ContactDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/yudao_demo_02_category.go b/internal/dao/yudao_demo_02_category.go new file mode 100644 index 0000000..1541c4b --- /dev/null +++ b/internal/dao/yudao_demo_02_category.go @@ -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" +) + +// yudaoDemo02CategoryDao is the data access object for the table yudao_demo02_category. +// You can define custom methods on it to extend its functionality as needed. +type yudaoDemo02CategoryDao struct { + *internal.YudaoDemo02CategoryDao +} + +var ( + // YudaoDemo02Category is a globally accessible object for table yudao_demo02_category operations. + YudaoDemo02Category = yudaoDemo02CategoryDao{internal.NewYudaoDemo02CategoryDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/yudao_demo_03_course.go b/internal/dao/yudao_demo_03_course.go new file mode 100644 index 0000000..827193b --- /dev/null +++ b/internal/dao/yudao_demo_03_course.go @@ -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" +) + +// yudaoDemo03CourseDao is the data access object for the table yudao_demo03_course. +// You can define custom methods on it to extend its functionality as needed. +type yudaoDemo03CourseDao struct { + *internal.YudaoDemo03CourseDao +} + +var ( + // YudaoDemo03Course is a globally accessible object for table yudao_demo03_course operations. + YudaoDemo03Course = yudaoDemo03CourseDao{internal.NewYudaoDemo03CourseDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/yudao_demo_03_grade.go b/internal/dao/yudao_demo_03_grade.go new file mode 100644 index 0000000..59bc59d --- /dev/null +++ b/internal/dao/yudao_demo_03_grade.go @@ -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" +) + +// yudaoDemo03GradeDao is the data access object for the table yudao_demo03_grade. +// You can define custom methods on it to extend its functionality as needed. +type yudaoDemo03GradeDao struct { + *internal.YudaoDemo03GradeDao +} + +var ( + // YudaoDemo03Grade is a globally accessible object for table yudao_demo03_grade operations. + YudaoDemo03Grade = yudaoDemo03GradeDao{internal.NewYudaoDemo03GradeDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/dao/yudao_demo_03_student.go b/internal/dao/yudao_demo_03_student.go new file mode 100644 index 0000000..2a1866a --- /dev/null +++ b/internal/dao/yudao_demo_03_student.go @@ -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" +) + +// yudaoDemo03StudentDao is the data access object for the table yudao_demo03_student. +// You can define custom methods on it to extend its functionality as needed. +type yudaoDemo03StudentDao struct { + *internal.YudaoDemo03StudentDao +} + +var ( + // YudaoDemo03Student is a globally accessible object for table yudao_demo03_student operations. + YudaoDemo03Student = yudaoDemo03StudentDao{internal.NewYudaoDemo03StudentDao()} +) + +// Add your custom methods and functionality below. diff --git a/internal/logic/.gitkeep b/internal/logic/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/internal/model/.gitkeep b/internal/model/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/internal/model/do/.gitkeep b/internal/model/do/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/internal/model/do/epic_artifact_info.go b/internal/model/do/epic_artifact_info.go new file mode 100644 index 0000000..76948bf --- /dev/null +++ b/internal/model/do/epic_artifact_info.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicArtifactInfo is the golang structure of table epic_artifact_info for DAO operations like Where/Data. +type EpicArtifactInfo struct { + g.Meta `orm:"table:epic_artifact_info, do:true"` + Id interface{} // 文件编号 + ArtifactName interface{} // 配置编号 + ArtifactCode interface{} // 文件名 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + StatsHealth interface{} // 文件路径 + StatsAttack interface{} // 文件路径 + StatsDefense interface{} // 文件路径 + Rarity interface{} // 文件路径 + Role interface{} // 文件路径 + ArtifactNameEn interface{} // 配置编号 + ImageUrl interface{} // 图片地址 +} diff --git a/internal/model/do/epic_gvg_attack_teams.go b/internal/model/do/epic_gvg_attack_teams.go new file mode 100644 index 0000000..3438b3c --- /dev/null +++ b/internal/model/do/epic_gvg_attack_teams.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgAttackTeams is the golang structure of table epic_gvg_attack_teams for DAO operations like Where/Data. +type EpicGvgAttackTeams struct { + g.Meta `orm:"table:epic_gvg_attack_teams, do:true"` + Id interface{} // id + AttackHeroes interface{} // 进攻角色 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/epic_gvg_defense_attack_mapping.go b/internal/model/do/epic_gvg_defense_attack_mapping.go new file mode 100644 index 0000000..776cb81 --- /dev/null +++ b/internal/model/do/epic_gvg_defense_attack_mapping.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgDefenseAttackMapping is the golang structure of table epic_gvg_defense_attack_mapping for DAO operations like Where/Data. +type EpicGvgDefenseAttackMapping struct { + g.Meta `orm:"table:epic_gvg_defense_attack_mapping, do:true"` + Id interface{} // id + DefenseId interface{} // 防守阵容 + AttackId interface{} // 进攻阵容 + EquipmentInfo interface{} // + Artifacts interface{} // + BattleStrategy interface{} // + Prerequisites interface{} // + ImportantNotes interface{} // + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/epic_gvg_defense_teams.go b/internal/model/do/epic_gvg_defense_teams.go new file mode 100644 index 0000000..57ad9f7 --- /dev/null +++ b/internal/model/do/epic_gvg_defense_teams.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgDefenseTeams is the golang structure of table epic_gvg_defense_teams for DAO operations like Where/Data. +type EpicGvgDefenseTeams struct { + g.Meta `orm:"table:epic_gvg_defense_teams, do:true"` + Id interface{} // id + DefenseHeroes interface{} // 防守角色 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/epic_hero_info.go b/internal/model/do/epic_hero_info.go new file mode 100644 index 0000000..666fc4c --- /dev/null +++ b/internal/model/do/epic_hero_info.go @@ -0,0 +1,31 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicHeroInfo is the golang structure of table epic_hero_info for DAO operations like Where/Data. +type EpicHeroInfo struct { + g.Meta `orm:"table:epic_hero_info, do:true"` + Id interface{} // 文件编号 + HeroName interface{} // 配置编号 + HeroCode interface{} // 文件名 + HeroAttrLv60 interface{} // 文件路径 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + NickName interface{} // 配置编号 + Rarity interface{} // 配置编号 + Role interface{} // 配置编号 + Zodiac interface{} // 配置编号 + HeadImgUrl interface{} // 配置编号 + Attribute interface{} // 配置编号 + Remark interface{} // 配置编号 +} diff --git a/internal/model/do/epic_hero_user_build.go b/internal/model/do/epic_hero_user_build.go new file mode 100644 index 0000000..e46ded9 --- /dev/null +++ b/internal/model/do/epic_hero_user_build.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicHeroUserBuild is the golang structure of table epic_hero_user_build for DAO operations like Where/Data. +type EpicHeroUserBuild struct { + g.Meta `orm:"table:epic_hero_user_build, do:true"` + Id interface{} // 文件编号 + ArtifactCode interface{} // 配置编号 + HeroCode interface{} // 文件名 + HeroHeathBuild interface{} // 文件路径 + HeroAttackBuild interface{} // 文件路径 + HeroDefBuild interface{} // 文件路径 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/fribble_hero_set.go b/internal/model/do/fribble_hero_set.go new file mode 100644 index 0000000..051a36c --- /dev/null +++ b/internal/model/do/fribble_hero_set.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// FribbleHeroSet is the golang structure of table fribble_hero_set for DAO operations like Where/Data. +type FribbleHeroSet struct { + g.Meta `orm:"table:fribble_hero_set, do:true"` + Id interface{} // 文件编号 + HeroCode interface{} // 配置编号 + JsonContent interface{} // 文件名 + HeroName interface{} // 文件路径 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + SuccessGet interface{} // +} diff --git a/internal/model/do/gear_set_info.go b/internal/model/do/gear_set_info.go new file mode 100644 index 0000000..1538a11 --- /dev/null +++ b/internal/model/do/gear_set_info.go @@ -0,0 +1,38 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// GearSetInfo is the golang structure of table gear_set_info for DAO operations like Where/Data. +type GearSetInfo struct { + g.Meta `orm:"table:gear_set_info, do:true"` + Id interface{} // 装备ID + Level interface{} // 装备等级 + GearId interface{} // + Enhance interface{} // 强化等级 + GearType interface{} // 类型,六个部位之一 + GearSetType interface{} // + MainStatType interface{} // 主属性类型 + MainStatValue interface{} // 主属性值 + SubStatOneType interface{} // 副属性1类型 + SubStatOneValue interface{} // 副属性1值 + SubStatTwoType interface{} // 副属性2类型 + SubStatTwoValue interface{} // 副属性2值 + SubStatThreeType interface{} // 副属性3类型 + SubStatThreeValue interface{} // 副属性3值 + SubStatFourType interface{} // 副属性4类型 + SubStatFourValue interface{} // 副属性4值 + AccountCode interface{} // 账号标识符 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/infra_api_access_log.go b/internal/model/do/infra_api_access_log.go new file mode 100644 index 0000000..9c68013 --- /dev/null +++ b/internal/model/do/infra_api_access_log.go @@ -0,0 +1,40 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraApiAccessLog is the golang structure of table infra_api_access_log for DAO operations like Where/Data. +type InfraApiAccessLog struct { + g.Meta `orm:"table:infra_api_access_log, do:true"` + Id interface{} // 日志主键 + TraceId interface{} // 链路追踪编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + ApplicationName interface{} // 应用名 + RequestMethod interface{} // 请求方法名 + RequestUrl interface{} // 请求地址 + RequestParams interface{} // 请求参数 + ResponseBody interface{} // 响应结果 + UserIp interface{} // 用户 IP + UserAgent interface{} // 浏览器 UA + OperateModule interface{} // 操作模块 + OperateName interface{} // 操作名 + OperateType interface{} // 操作分类 + BeginTime *gtime.Time // 开始请求时间 + EndTime *gtime.Time // 结束请求时间 + Duration interface{} // 执行时长 + ResultCode interface{} // 结果码 + ResultMsg interface{} // 结果提示 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/infra_api_error_log.go b/internal/model/do/infra_api_error_log.go new file mode 100644 index 0000000..45fff06 --- /dev/null +++ b/internal/model/do/infra_api_error_log.go @@ -0,0 +1,43 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraApiErrorLog is the golang structure of table infra_api_error_log for DAO operations like Where/Data. +type InfraApiErrorLog struct { + g.Meta `orm:"table:infra_api_error_log, do:true"` + Id interface{} // 编号 + TraceId interface{} // 链路追踪编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + ApplicationName interface{} // 应用名 + RequestMethod interface{} // 请求方法名 + RequestUrl interface{} // 请求地址 + RequestParams interface{} // 请求参数 + UserIp interface{} // 用户 IP + UserAgent interface{} // 浏览器 UA + ExceptionTime *gtime.Time // 异常发生时间 + ExceptionName interface{} // 异常名 + ExceptionMessage interface{} // 异常导致的消息 + ExceptionRootCauseMessage interface{} // 异常导致的根消息 + ExceptionStackTrace interface{} // 异常的栈轨迹 + ExceptionClassName interface{} // 异常发生的类全名 + ExceptionFileName interface{} // 异常发生的类文件 + ExceptionMethodName interface{} // 异常发生的方法名 + ExceptionLineNumber interface{} // 异常发生的方法所在行 + ProcessStatus interface{} // 处理状态 + ProcessTime *gtime.Time // 处理时间 + ProcessUserId interface{} // 处理用户编号 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/infra_codegen_column.go b/internal/model/do/infra_codegen_column.go new file mode 100644 index 0000000..63d0dcd --- /dev/null +++ b/internal/model/do/infra_codegen_column.go @@ -0,0 +1,38 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraCodegenColumn is the golang structure of table infra_codegen_column for DAO operations like Where/Data. +type InfraCodegenColumn struct { + g.Meta `orm:"table:infra_codegen_column, do:true"` + Id interface{} // 编号 + TableId interface{} // 表编号 + ColumnName interface{} // 字段名 + DataType interface{} // 字段类型 + ColumnComment interface{} // 字段描述 + Nullable interface{} // 是否允许为空 + PrimaryKey interface{} // 是否主键 + OrdinalPosition interface{} // 排序 + JavaType interface{} // Java 属性类型 + JavaField interface{} // Java 属性名 + DictType interface{} // 字典类型 + Example interface{} // 数据示例 + CreateOperation interface{} // 是否为 Create 创建操作的字段 + UpdateOperation interface{} // 是否为 Update 更新操作的字段 + ListOperation interface{} // 是否为 List 查询操作的字段 + ListOperationCondition interface{} // List 查询操作的条件类型 + ListOperationResult interface{} // 是否为 List 查询操作的返回字段 + HtmlType interface{} // 显示类型 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_codegen_table.go b/internal/model/do/infra_codegen_table.go new file mode 100644 index 0000000..820a5a1 --- /dev/null +++ b/internal/model/do/infra_codegen_table.go @@ -0,0 +1,39 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraCodegenTable is the golang structure of table infra_codegen_table for DAO operations like Where/Data. +type InfraCodegenTable struct { + g.Meta `orm:"table:infra_codegen_table, do:true"` + Id interface{} // 编号 + DataSourceConfigId interface{} // 数据源配置的编号 + Scene interface{} // 生成场景 + TableName interface{} // 表名称 + TableComment interface{} // 表描述 + Remark interface{} // 备注 + ModuleName interface{} // 模块名 + BusinessName interface{} // 业务名 + ClassName interface{} // 类名称 + ClassComment interface{} // 类描述 + Author interface{} // 作者 + TemplateType interface{} // 模板类型 + FrontType interface{} // 前端类型 + ParentMenuId interface{} // 父菜单编号 + MasterTableId interface{} // 主表的编号 + SubJoinColumnId interface{} // 子表关联主表的字段编号 + SubJoinMany interface{} // 主表与子表是否一对多 + TreeParentColumnId interface{} // 树表的父字段编号 + TreeNameColumnId interface{} // 树表的名字字段编号 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_config.go b/internal/model/do/infra_config.go new file mode 100644 index 0000000..da28422 --- /dev/null +++ b/internal/model/do/infra_config.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraConfig is the golang structure of table infra_config for DAO operations like Where/Data. +type InfraConfig struct { + g.Meta `orm:"table:infra_config, do:true"` + Id interface{} // 参数主键 + Category interface{} // 参数分组 + Type interface{} // 参数类型 + Name interface{} // 参数名称 + ConfigKey interface{} // 参数键名 + Value interface{} // 参数键值 + Visible interface{} // 是否可见 + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_data_source_config.go b/internal/model/do/infra_data_source_config.go new file mode 100644 index 0000000..e6e8019 --- /dev/null +++ b/internal/model/do/infra_data_source_config.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraDataSourceConfig is the golang structure of table infra_data_source_config for DAO operations like Where/Data. +type InfraDataSourceConfig struct { + g.Meta `orm:"table:infra_data_source_config, do:true"` + Id interface{} // 主键编号 + Name interface{} // 参数名称 + Url interface{} // 数据源连接 + Username interface{} // 用户名 + Password interface{} // 密码 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_file.go b/internal/model/do/infra_file.go new file mode 100644 index 0000000..99b3aaa --- /dev/null +++ b/internal/model/do/infra_file.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFile is the golang structure of table infra_file for DAO operations like Where/Data. +type InfraFile struct { + g.Meta `orm:"table:infra_file, do:true"` + Id interface{} // 文件编号 + ConfigId interface{} // 配置编号 + Name interface{} // 文件名 + Path interface{} // 文件路径 + Url interface{} // 文件 URL + Type interface{} // 文件类型 + Size interface{} // 文件大小 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_file_config.go b/internal/model/do/infra_file_config.go new file mode 100644 index 0000000..73c4da3 --- /dev/null +++ b/internal/model/do/infra_file_config.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFileConfig is the golang structure of table infra_file_config for DAO operations like Where/Data. +type InfraFileConfig struct { + g.Meta `orm:"table:infra_file_config, do:true"` + Id interface{} // 编号 + Name interface{} // 配置名 + Storage interface{} // 存储器 + Remark interface{} // 备注 + Master interface{} // 是否为主配置 + Config interface{} // 存储配置 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_file_content.go b/internal/model/do/infra_file_content.go new file mode 100644 index 0000000..b8d353f --- /dev/null +++ b/internal/model/do/infra_file_content.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFileContent is the golang structure of table infra_file_content for DAO operations like Where/Data. +type InfraFileContent struct { + g.Meta `orm:"table:infra_file_content, do:true"` + Id interface{} // 编号 + ConfigId interface{} // 配置编号 + Path interface{} // 文件路径 + Content []byte // 文件内容 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_job.go b/internal/model/do/infra_job.go new file mode 100644 index 0000000..27cead6 --- /dev/null +++ b/internal/model/do/infra_job.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraJob is the golang structure of table infra_job for DAO operations like Where/Data. +type InfraJob struct { + g.Meta `orm:"table:infra_job, do:true"` + Id interface{} // 任务编号 + Name interface{} // 任务名称 + Status interface{} // 任务状态 + HandlerName interface{} // 处理器的名字 + HandlerParam interface{} // 处理器的参数 + CronExpression interface{} // CRON 表达式 + RetryCount interface{} // 重试次数 + RetryInterval interface{} // 重试间隔 + MonitorTimeout interface{} // 监控超时时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/infra_job_log.go b/internal/model/do/infra_job_log.go new file mode 100644 index 0000000..bfd3f23 --- /dev/null +++ b/internal/model/do/infra_job_log.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraJobLog is the golang structure of table infra_job_log for DAO operations like Where/Data. +type InfraJobLog struct { + g.Meta `orm:"table:infra_job_log, do:true"` + Id interface{} // 日志编号 + JobId interface{} // 任务编号 + HandlerName interface{} // 处理器的名字 + HandlerParam interface{} // 处理器的参数 + ExecuteIndex interface{} // 第几次执行 + BeginTime *gtime.Time // 开始执行时间 + EndTime *gtime.Time // 结束执行时间 + Duration interface{} // 执行时长 + Status interface{} // 任务状态 + Result interface{} // 结果数据 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/qrtz_blob_triggers.go b/internal/model/do/qrtz_blob_triggers.go new file mode 100644 index 0000000..8da163a --- /dev/null +++ b/internal/model/do/qrtz_blob_triggers.go @@ -0,0 +1,18 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzBlobTriggers is the golang structure of table qrtz_blob_triggers for DAO operations like Where/Data. +type QrtzBlobTriggers struct { + g.Meta `orm:"table:qrtz_blob_triggers, do:true"` + SchedName interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + BlobData []byte // +} diff --git a/internal/model/do/qrtz_calendars.go b/internal/model/do/qrtz_calendars.go new file mode 100644 index 0000000..4ba80a2 --- /dev/null +++ b/internal/model/do/qrtz_calendars.go @@ -0,0 +1,17 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzCalendars is the golang structure of table qrtz_calendars for DAO operations like Where/Data. +type QrtzCalendars struct { + g.Meta `orm:"table:qrtz_calendars, do:true"` + SchedName interface{} // + CalendarName interface{} // + Calendar []byte // +} diff --git a/internal/model/do/qrtz_cron_triggers.go b/internal/model/do/qrtz_cron_triggers.go new file mode 100644 index 0000000..2a8952f --- /dev/null +++ b/internal/model/do/qrtz_cron_triggers.go @@ -0,0 +1,19 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzCronTriggers is the golang structure of table qrtz_cron_triggers for DAO operations like Where/Data. +type QrtzCronTriggers struct { + g.Meta `orm:"table:qrtz_cron_triggers, do:true"` + SchedName interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + CronExpression interface{} // + TimeZoneId interface{} // +} diff --git a/internal/model/do/qrtz_fired_triggers.go b/internal/model/do/qrtz_fired_triggers.go new file mode 100644 index 0000000..2d45f03 --- /dev/null +++ b/internal/model/do/qrtz_fired_triggers.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzFiredTriggers is the golang structure of table qrtz_fired_triggers for DAO operations like Where/Data. +type QrtzFiredTriggers struct { + g.Meta `orm:"table:qrtz_fired_triggers, do:true"` + SchedName interface{} // + EntryId interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + InstanceName interface{} // + FiredTime interface{} // + SchedTime interface{} // + Priority interface{} // + State interface{} // + JobName interface{} // + JobGroup interface{} // + IsNonconcurrent interface{} // + RequestsRecovery interface{} // +} diff --git a/internal/model/do/qrtz_job_details.go b/internal/model/do/qrtz_job_details.go new file mode 100644 index 0000000..c99dc3c --- /dev/null +++ b/internal/model/do/qrtz_job_details.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzJobDetails is the golang structure of table qrtz_job_details for DAO operations like Where/Data. +type QrtzJobDetails struct { + g.Meta `orm:"table:qrtz_job_details, do:true"` + SchedName interface{} // + JobName interface{} // + JobGroup interface{} // + Description interface{} // + JobClassName interface{} // + IsDurable interface{} // + IsNonconcurrent interface{} // + IsUpdateData interface{} // + RequestsRecovery interface{} // + JobData []byte // +} diff --git a/internal/model/do/qrtz_locks.go b/internal/model/do/qrtz_locks.go new file mode 100644 index 0000000..cdb21fb --- /dev/null +++ b/internal/model/do/qrtz_locks.go @@ -0,0 +1,16 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzLocks is the golang structure of table qrtz_locks for DAO operations like Where/Data. +type QrtzLocks struct { + g.Meta `orm:"table:qrtz_locks, do:true"` + SchedName interface{} // + LockName interface{} // +} diff --git a/internal/model/do/qrtz_paused_trigger_grps.go b/internal/model/do/qrtz_paused_trigger_grps.go new file mode 100644 index 0000000..4d8af5c --- /dev/null +++ b/internal/model/do/qrtz_paused_trigger_grps.go @@ -0,0 +1,16 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzPausedTriggerGrps is the golang structure of table qrtz_paused_trigger_grps for DAO operations like Where/Data. +type QrtzPausedTriggerGrps struct { + g.Meta `orm:"table:qrtz_paused_trigger_grps, do:true"` + SchedName interface{} // + TriggerGroup interface{} // +} diff --git a/internal/model/do/qrtz_scheduler_state.go b/internal/model/do/qrtz_scheduler_state.go new file mode 100644 index 0000000..c8a1b48 --- /dev/null +++ b/internal/model/do/qrtz_scheduler_state.go @@ -0,0 +1,18 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzSchedulerState is the golang structure of table qrtz_scheduler_state for DAO operations like Where/Data. +type QrtzSchedulerState struct { + g.Meta `orm:"table:qrtz_scheduler_state, do:true"` + SchedName interface{} // + InstanceName interface{} // + LastCheckinTime interface{} // + CheckinInterval interface{} // +} diff --git a/internal/model/do/qrtz_simple_triggers.go b/internal/model/do/qrtz_simple_triggers.go new file mode 100644 index 0000000..0596809 --- /dev/null +++ b/internal/model/do/qrtz_simple_triggers.go @@ -0,0 +1,20 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzSimpleTriggers is the golang structure of table qrtz_simple_triggers for DAO operations like Where/Data. +type QrtzSimpleTriggers struct { + g.Meta `orm:"table:qrtz_simple_triggers, do:true"` + SchedName interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + RepeatCount interface{} // + RepeatInterval interface{} // + TimesTriggered interface{} // +} diff --git a/internal/model/do/qrtz_simprop_triggers.go b/internal/model/do/qrtz_simprop_triggers.go new file mode 100644 index 0000000..71cf4d9 --- /dev/null +++ b/internal/model/do/qrtz_simprop_triggers.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzSimpropTriggers is the golang structure of table qrtz_simprop_triggers for DAO operations like Where/Data. +type QrtzSimpropTriggers struct { + g.Meta `orm:"table:qrtz_simprop_triggers, do:true"` + SchedName interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + StrProp1 interface{} // + StrProp2 interface{} // + StrProp3 interface{} // + IntProp1 interface{} // + IntProp2 interface{} // + LongProp1 interface{} // + LongProp2 interface{} // + DecProp1 interface{} // + DecProp2 interface{} // + BoolProp1 interface{} // + BoolProp2 interface{} // +} diff --git a/internal/model/do/qrtz_triggers.go b/internal/model/do/qrtz_triggers.go new file mode 100644 index 0000000..d7d5042 --- /dev/null +++ b/internal/model/do/qrtz_triggers.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" +) + +// QrtzTriggers is the golang structure of table qrtz_triggers for DAO operations like Where/Data. +type QrtzTriggers struct { + g.Meta `orm:"table:qrtz_triggers, do:true"` + SchedName interface{} // + TriggerName interface{} // + TriggerGroup interface{} // + JobName interface{} // + JobGroup interface{} // + Description interface{} // + NextFireTime interface{} // + PrevFireTime interface{} // + Priority interface{} // + TriggerState interface{} // + TriggerType interface{} // + StartTime interface{} // + EndTime interface{} // + CalendarName interface{} // + MisfireInstr interface{} // + JobData []byte // +} diff --git a/internal/model/do/system_dept.go b/internal/model/do/system_dept.go new file mode 100644 index 0000000..5672c4b --- /dev/null +++ b/internal/model/do/system_dept.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDept is the golang structure of table system_dept for DAO operations like Where/Data. +type SystemDept struct { + g.Meta `orm:"table:system_dept, do:true"` + Id interface{} // 部门id + Name interface{} // 部门名称 + ParentId interface{} // 父部门id + Sort interface{} // 显示顺序 + LeaderUserId interface{} // 负责人 + Phone interface{} // 联系电话 + Email interface{} // 邮箱 + Status interface{} // 部门状态(0正常 1停用) + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_dict_data.go b/internal/model/do/system_dict_data.go new file mode 100644 index 0000000..cc33aec --- /dev/null +++ b/internal/model/do/system_dict_data.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDictData is the golang structure of table system_dict_data for DAO operations like Where/Data. +type SystemDictData struct { + g.Meta `orm:"table:system_dict_data, do:true"` + Id interface{} // 字典编码 + Sort interface{} // 字典排序 + Label interface{} // 字典标签 + Value interface{} // 字典键值 + DictType interface{} // 字典类型 + Status interface{} // 状态(0正常 1停用) + ColorType interface{} // 颜色类型 + CssClass interface{} // css 样式 + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_dict_type.go b/internal/model/do/system_dict_type.go new file mode 100644 index 0000000..ab90054 --- /dev/null +++ b/internal/model/do/system_dict_type.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDictType is the golang structure of table system_dict_type for DAO operations like Where/Data. +type SystemDictType struct { + g.Meta `orm:"table:system_dict_type, do:true"` + Id interface{} // 字典主键 + Name interface{} // 字典名称 + Type interface{} // 字典类型 + Status interface{} // 状态(0正常 1停用) + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + DeletedTime *gtime.Time // 删除时间 +} diff --git a/internal/model/do/system_login_log.go b/internal/model/do/system_login_log.go new file mode 100644 index 0000000..5ee4ed9 --- /dev/null +++ b/internal/model/do/system_login_log.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemLoginLog is the golang structure of table system_login_log for DAO operations like Where/Data. +type SystemLoginLog struct { + g.Meta `orm:"table:system_login_log, do:true"` + Id interface{} // 访问ID + LogType interface{} // 日志类型 + TraceId interface{} // 链路追踪编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + Username interface{} // 用户账号 + Result interface{} // 登陆结果 + UserIp interface{} // 用户 IP + UserAgent interface{} // 浏览器 UA + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_mail_account.go b/internal/model/do/system_mail_account.go new file mode 100644 index 0000000..85cdec1 --- /dev/null +++ b/internal/model/do/system_mail_account.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailAccount is the golang structure of table system_mail_account for DAO operations like Where/Data. +type SystemMailAccount struct { + g.Meta `orm:"table:system_mail_account, do:true"` + Id interface{} // 主键 + Mail interface{} // 邮箱 + Username interface{} // 用户名 + Password interface{} // 密码 + Host interface{} // SMTP 服务器域名 + Port interface{} // SMTP 服务器端口 + SslEnable interface{} // 是否开启 SSL + StarttlsEnable interface{} // 是否开启 STARTTLS + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_mail_log.go b/internal/model/do/system_mail_log.go new file mode 100644 index 0000000..b44eaa9 --- /dev/null +++ b/internal/model/do/system_mail_log.go @@ -0,0 +1,36 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailLog is the golang structure of table system_mail_log for DAO operations like Where/Data. +type SystemMailLog struct { + g.Meta `orm:"table:system_mail_log, do:true"` + Id interface{} // 编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + ToMail interface{} // 接收邮箱地址 + AccountId interface{} // 邮箱账号编号 + FromMail interface{} // 发送邮箱地址 + TemplateId interface{} // 模板编号 + TemplateCode interface{} // 模板编码 + TemplateNickname interface{} // 模版发送人名称 + TemplateTitle interface{} // 邮件标题 + TemplateContent interface{} // 邮件内容 + TemplateParams interface{} // 邮件参数 + SendStatus interface{} // 发送状态 + SendTime *gtime.Time // 发送时间 + SendMessageId interface{} // 发送返回的消息 ID + SendException interface{} // 发送异常 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_mail_template.go b/internal/model/do/system_mail_template.go new file mode 100644 index 0000000..c15fd3d --- /dev/null +++ b/internal/model/do/system_mail_template.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailTemplate is the golang structure of table system_mail_template for DAO operations like Where/Data. +type SystemMailTemplate struct { + g.Meta `orm:"table:system_mail_template, do:true"` + Id interface{} // 编号 + Name interface{} // 模板名称 + Code interface{} // 模板编码 + AccountId interface{} // 发送的邮箱账号编号 + Nickname interface{} // 发送人名称 + Title interface{} // 模板标题 + Content interface{} // 模板内容 + Params interface{} // 参数数组 + Status interface{} // 开启状态 + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_menu.go b/internal/model/do/system_menu.go new file mode 100644 index 0000000..77a27f1 --- /dev/null +++ b/internal/model/do/system_menu.go @@ -0,0 +1,34 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMenu is the golang structure of table system_menu for DAO operations like Where/Data. +type SystemMenu struct { + g.Meta `orm:"table:system_menu, do:true"` + Id interface{} // 菜单ID + Name interface{} // 菜单名称 + Permission interface{} // 权限标识 + Type interface{} // 菜单类型 + Sort interface{} // 显示顺序 + ParentId interface{} // 父菜单ID + Path interface{} // 路由地址 + Icon interface{} // 菜单图标 + Component interface{} // 组件路径 + ComponentName interface{} // 组件名 + Status interface{} // 菜单状态 + Visible interface{} // 是否可见 + KeepAlive interface{} // 是否缓存 + AlwaysShow interface{} // 是否总是显示 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_notice.go b/internal/model/do/system_notice.go new file mode 100644 index 0000000..331cde2 --- /dev/null +++ b/internal/model/do/system_notice.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotice is the golang structure of table system_notice for DAO operations like Where/Data. +type SystemNotice struct { + g.Meta `orm:"table:system_notice, do:true"` + Id interface{} // 公告ID + Title interface{} // 公告标题 + Content interface{} // 公告内容 + Type interface{} // 公告类型(1通知 2公告) + Status interface{} // 公告状态(0正常 1关闭) + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_notify_message.go b/internal/model/do/system_notify_message.go new file mode 100644 index 0000000..78fef9f --- /dev/null +++ b/internal/model/do/system_notify_message.go @@ -0,0 +1,32 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotifyMessage is the golang structure of table system_notify_message for DAO operations like Where/Data. +type SystemNotifyMessage struct { + g.Meta `orm:"table:system_notify_message, do:true"` + Id interface{} // 用户ID + UserId interface{} // 用户id + UserType interface{} // 用户类型 + TemplateId interface{} // 模版编号 + TemplateCode interface{} // 模板编码 + TemplateNickname interface{} // 模版发送人名称 + TemplateContent interface{} // 模版内容 + TemplateType interface{} // 模版类型 + TemplateParams interface{} // 模版参数 + ReadStatus interface{} // 是否已读 + ReadTime *gtime.Time // 阅读时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_notify_template.go b/internal/model/do/system_notify_template.go new file mode 100644 index 0000000..b5cf39a --- /dev/null +++ b/internal/model/do/system_notify_template.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotifyTemplate is the golang structure of table system_notify_template for DAO operations like Where/Data. +type SystemNotifyTemplate struct { + g.Meta `orm:"table:system_notify_template, do:true"` + Id interface{} // 主键 + Name interface{} // 模板名称 + Code interface{} // 模版编码 + Nickname interface{} // 发送人名称 + Content interface{} // 模版内容 + Type interface{} // 类型 + Params interface{} // 参数数组 + Status interface{} // 状态 + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_oauth_2_access_token.go b/internal/model/do/system_oauth_2_access_token.go new file mode 100644 index 0000000..a695e5d --- /dev/null +++ b/internal/model/do/system_oauth_2_access_token.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2AccessToken is the golang structure of table system_oauth2_access_token for DAO operations like Where/Data. +type SystemOauth2AccessToken struct { + g.Meta `orm:"table:system_oauth2_access_token, do:true"` + Id interface{} // 编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + UserInfo interface{} // 用户信息 + AccessToken interface{} // 访问令牌 + RefreshToken interface{} // 刷新令牌 + ClientId interface{} // 客户端编号 + Scopes interface{} // 授权范围 + ExpiresTime *gtime.Time // 过期时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_oauth_2_approve.go b/internal/model/do/system_oauth_2_approve.go new file mode 100644 index 0000000..ebfd97b --- /dev/null +++ b/internal/model/do/system_oauth_2_approve.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Approve is the golang structure of table system_oauth2_approve for DAO operations like Where/Data. +type SystemOauth2Approve struct { + g.Meta `orm:"table:system_oauth2_approve, do:true"` + Id interface{} // 编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + ClientId interface{} // 客户端编号 + Scope interface{} // 授权范围 + Approved interface{} // 是否接受 + ExpiresTime *gtime.Time // 过期时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_oauth_2_client.go b/internal/model/do/system_oauth_2_client.go new file mode 100644 index 0000000..6e1cdf4 --- /dev/null +++ b/internal/model/do/system_oauth_2_client.go @@ -0,0 +1,36 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Client is the golang structure of table system_oauth2_client for DAO operations like Where/Data. +type SystemOauth2Client struct { + g.Meta `orm:"table:system_oauth2_client, do:true"` + Id interface{} // 编号 + ClientId interface{} // 客户端编号 + Secret interface{} // 客户端密钥 + Name interface{} // 应用名 + Logo interface{} // 应用图标 + Description interface{} // 应用描述 + Status interface{} // 状态 + AccessTokenValiditySeconds interface{} // 访问令牌的有效期 + RefreshTokenValiditySeconds interface{} // 刷新令牌的有效期 + RedirectUris interface{} // 可重定向的 URI 地址 + AuthorizedGrantTypes interface{} // 授权类型 + Scopes interface{} // 授权范围 + AutoApproveScopes interface{} // 自动通过的授权范围 + Authorities interface{} // 权限 + ResourceIds interface{} // 资源 + AdditionalInformation interface{} // 附加信息 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_oauth_2_code.go b/internal/model/do/system_oauth_2_code.go new file mode 100644 index 0000000..20edb30 --- /dev/null +++ b/internal/model/do/system_oauth_2_code.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Code is the golang structure of table system_oauth2_code for DAO operations like Where/Data. +type SystemOauth2Code struct { + g.Meta `orm:"table:system_oauth2_code, do:true"` + Id interface{} // 编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + Code interface{} // 授权码 + ClientId interface{} // 客户端编号 + Scopes interface{} // 授权范围 + ExpiresTime *gtime.Time // 过期时间 + RedirectUri interface{} // 可重定向的 URI 地址 + State interface{} // 状态 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_oauth_2_refresh_token.go b/internal/model/do/system_oauth_2_refresh_token.go new file mode 100644 index 0000000..e7f5cd4 --- /dev/null +++ b/internal/model/do/system_oauth_2_refresh_token.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2RefreshToken is the golang structure of table system_oauth2_refresh_token for DAO operations like Where/Data. +type SystemOauth2RefreshToken struct { + g.Meta `orm:"table:system_oauth2_refresh_token, do:true"` + Id interface{} // 编号 + UserId interface{} // 用户编号 + RefreshToken interface{} // 刷新令牌 + UserType interface{} // 用户类型 + ClientId interface{} // 客户端编号 + Scopes interface{} // 授权范围 + ExpiresTime *gtime.Time // 过期时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_operate_log.go b/internal/model/do/system_operate_log.go new file mode 100644 index 0000000..6164980 --- /dev/null +++ b/internal/model/do/system_operate_log.go @@ -0,0 +1,34 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOperateLog is the golang structure of table system_operate_log for DAO operations like Where/Data. +type SystemOperateLog struct { + g.Meta `orm:"table:system_operate_log, do:true"` + Id interface{} // 日志主键 + TraceId interface{} // 链路追踪编号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + Type interface{} // 操作模块类型 + SubType interface{} // 操作名 + BizId interface{} // 操作数据模块编号 + Action interface{} // 操作内容 + Extra interface{} // 拓展字段 + RequestMethod interface{} // 请求方法名 + RequestUrl interface{} // 请求地址 + UserIp interface{} // 用户 IP + UserAgent interface{} // 浏览器 UA + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_post.go b/internal/model/do/system_post.go new file mode 100644 index 0000000..3393a30 --- /dev/null +++ b/internal/model/do/system_post.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemPost is the golang structure of table system_post for DAO operations like Where/Data. +type SystemPost struct { + g.Meta `orm:"table:system_post, do:true"` + Id interface{} // 岗位ID + Code interface{} // 岗位编码 + Name interface{} // 岗位名称 + Sort interface{} // 显示顺序 + Status interface{} // 状态(0正常 1停用) + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_role.go b/internal/model/do/system_role.go new file mode 100644 index 0000000..e85d18f --- /dev/null +++ b/internal/model/do/system_role.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemRole is the golang structure of table system_role for DAO operations like Where/Data. +type SystemRole struct { + g.Meta `orm:"table:system_role, do:true"` + Id interface{} // 角色ID + Name interface{} // 角色名称 + Code interface{} // 角色权限字符串 + Sort interface{} // 显示顺序 + DataScope interface{} // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) + DataScopeDeptIds interface{} // 数据范围(指定部门数组) + Status interface{} // 角色状态(0正常 1停用) + Type interface{} // 角色类型 + Remark interface{} // 备注 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_role_menu.go b/internal/model/do/system_role_menu.go new file mode 100644 index 0000000..6f89ea7 --- /dev/null +++ b/internal/model/do/system_role_menu.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemRoleMenu is the golang structure of table system_role_menu for DAO operations like Where/Data. +type SystemRoleMenu struct { + g.Meta `orm:"table:system_role_menu, do:true"` + Id interface{} // 自增编号 + RoleId interface{} // 角色ID + MenuId interface{} // 菜单ID + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_sms_channel.go b/internal/model/do/system_sms_channel.go new file mode 100644 index 0000000..1c7eb94 --- /dev/null +++ b/internal/model/do/system_sms_channel.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsChannel is the golang structure of table system_sms_channel for DAO operations like Where/Data. +type SystemSmsChannel struct { + g.Meta `orm:"table:system_sms_channel, do:true"` + Id interface{} // 编号 + Signature interface{} // 短信签名 + Code interface{} // 渠道编码 + Status interface{} // 开启状态 + Remark interface{} // 备注 + ApiKey interface{} // 短信 API 的账号 + ApiSecret interface{} // 短信 API 的秘钥 + CallbackUrl interface{} // 短信发送回调 URL + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_sms_code.go b/internal/model/do/system_sms_code.go new file mode 100644 index 0000000..41ee268 --- /dev/null +++ b/internal/model/do/system_sms_code.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsCode is the golang structure of table system_sms_code for DAO operations like Where/Data. +type SystemSmsCode struct { + g.Meta `orm:"table:system_sms_code, do:true"` + Id interface{} // 编号 + Mobile interface{} // 手机号 + Code interface{} // 验证码 + CreateIp interface{} // 创建 IP + Scene interface{} // 发送场景 + TodayIndex interface{} // 今日发送的第几条 + Used interface{} // 是否使用 + UsedTime *gtime.Time // 使用时间 + UsedIp interface{} // 使用 IP + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_sms_log.go b/internal/model/do/system_sms_log.go new file mode 100644 index 0000000..1ade4c5 --- /dev/null +++ b/internal/model/do/system_sms_log.go @@ -0,0 +1,42 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsLog is the golang structure of table system_sms_log for DAO operations like Where/Data. +type SystemSmsLog struct { + g.Meta `orm:"table:system_sms_log, do:true"` + Id interface{} // 编号 + ChannelId interface{} // 短信渠道编号 + ChannelCode interface{} // 短信渠道编码 + TemplateId interface{} // 模板编号 + TemplateCode interface{} // 模板编码 + TemplateType interface{} // 短信类型 + TemplateContent interface{} // 短信内容 + TemplateParams interface{} // 短信参数 + ApiTemplateId interface{} // 短信 API 的模板编号 + Mobile interface{} // 手机号 + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + SendStatus interface{} // 发送状态 + SendTime *gtime.Time // 发送时间 + ApiSendCode interface{} // 短信 API 发送结果的编码 + ApiSendMsg interface{} // 短信 API 发送失败的提示 + ApiRequestId interface{} // 短信 API 发送返回的唯一请求 ID + ApiSerialNo interface{} // 短信 API 发送返回的序号 + ReceiveStatus interface{} // 接收状态 + ReceiveTime *gtime.Time // 接收时间 + ApiReceiveCode interface{} // API 接收结果的编码 + ApiReceiveMsg interface{} // API 接收结果的说明 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_sms_template.go b/internal/model/do/system_sms_template.go new file mode 100644 index 0000000..e098d74 --- /dev/null +++ b/internal/model/do/system_sms_template.go @@ -0,0 +1,31 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsTemplate is the golang structure of table system_sms_template for DAO operations like Where/Data. +type SystemSmsTemplate struct { + g.Meta `orm:"table:system_sms_template, do:true"` + Id interface{} // 编号 + Type interface{} // 模板类型 + Status interface{} // 开启状态 + Code interface{} // 模板编码 + Name interface{} // 模板名称 + Content interface{} // 模板内容 + Params interface{} // 参数数组 + Remark interface{} // 备注 + ApiTemplateId interface{} // 短信 API 的模板编号 + ChannelId interface{} // 短信渠道编号 + ChannelCode interface{} // 短信渠道编码 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_social_client.go b/internal/model/do/system_social_client.go new file mode 100644 index 0000000..a8bab8f --- /dev/null +++ b/internal/model/do/system_social_client.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialClient is the golang structure of table system_social_client for DAO operations like Where/Data. +type SystemSocialClient struct { + g.Meta `orm:"table:system_social_client, do:true"` + Id interface{} // 编号 + Name interface{} // 应用名 + SocialType interface{} // 社交平台的类型 + UserType interface{} // 用户类型 + ClientId interface{} // 客户端编号 + ClientSecret interface{} // 客户端密钥 + AgentId interface{} // 代理编号 + Status interface{} // 状态 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_social_user.go b/internal/model/do/system_social_user.go new file mode 100644 index 0000000..322af30 --- /dev/null +++ b/internal/model/do/system_social_user.go @@ -0,0 +1,31 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialUser is the golang structure of table system_social_user for DAO operations like Where/Data. +type SystemSocialUser struct { + g.Meta `orm:"table:system_social_user, do:true"` + Id interface{} // 主键(自增策略) + Type interface{} // 社交平台的类型 + Openid interface{} // 社交 openid + Token interface{} // 社交 token + RawTokenInfo interface{} // 原始 Token 数据,一般是 JSON 格式 + Nickname interface{} // 用户昵称 + Avatar interface{} // 用户头像 + RawUserInfo interface{} // 原始用户数据,一般是 JSON 格式 + Code interface{} // 最后一次的认证 code + State interface{} // 最后一次的认证 state + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_social_user_bind.go b/internal/model/do/system_social_user_bind.go new file mode 100644 index 0000000..3ae315d --- /dev/null +++ b/internal/model/do/system_social_user_bind.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialUserBind is the golang structure of table system_social_user_bind for DAO operations like Where/Data. +type SystemSocialUserBind struct { + g.Meta `orm:"table:system_social_user_bind, do:true"` + Id interface{} // 主键(自增策略) + UserId interface{} // 用户编号 + UserType interface{} // 用户类型 + SocialType interface{} // 社交平台的类型 + SocialUserId interface{} // 社交用户的编号 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_tenant.go b/internal/model/do/system_tenant.go new file mode 100644 index 0000000..32c6ffc --- /dev/null +++ b/internal/model/do/system_tenant.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemTenant is the golang structure of table system_tenant for DAO operations like Where/Data. +type SystemTenant struct { + g.Meta `orm:"table:system_tenant, do:true"` + Id interface{} // 租户编号 + Name interface{} // 租户名 + ContactUserId interface{} // 联系人的用户编号 + ContactName interface{} // 联系人 + ContactMobile interface{} // 联系手机 + Status interface{} // 租户状态(0正常 1停用) + Website interface{} // 绑定域名 + PackageId interface{} // 租户套餐编号 + ExpireTime *gtime.Time // 过期时间 + AccountCount interface{} // 账号数量 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_tenant_package.go b/internal/model/do/system_tenant_package.go new file mode 100644 index 0000000..465e20f --- /dev/null +++ b/internal/model/do/system_tenant_package.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemTenantPackage is the golang structure of table system_tenant_package for DAO operations like Where/Data. +type SystemTenantPackage struct { + g.Meta `orm:"table:system_tenant_package, do:true"` + Id interface{} // 套餐编号 + Name interface{} // 套餐名 + Status interface{} // 租户状态(0正常 1停用) + Remark interface{} // 备注 + MenuIds interface{} // 关联的菜单编号 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 +} diff --git a/internal/model/do/system_user_post.go b/internal/model/do/system_user_post.go new file mode 100644 index 0000000..c62ffe0 --- /dev/null +++ b/internal/model/do/system_user_post.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUserPost is the golang structure of table system_user_post for DAO operations like Where/Data. +type SystemUserPost struct { + g.Meta `orm:"table:system_user_post, do:true"` + Id interface{} // id + UserId interface{} // 用户ID + PostId interface{} // 岗位ID + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_user_role.go b/internal/model/do/system_user_role.go new file mode 100644 index 0000000..38421da --- /dev/null +++ b/internal/model/do/system_user_role.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUserRole is the golang structure of table system_user_role for DAO operations like Where/Data. +type SystemUserRole struct { + g.Meta `orm:"table:system_user_role, do:true"` + Id interface{} // 自增编号 + UserId interface{} // 用户ID + RoleId interface{} // 角色ID + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/system_users.go b/internal/model/do/system_users.go new file mode 100644 index 0000000..94f4fdd --- /dev/null +++ b/internal/model/do/system_users.go @@ -0,0 +1,35 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUsers is the golang structure of table system_users for DAO operations like Where/Data. +type SystemUsers struct { + g.Meta `orm:"table:system_users, do:true"` + Id interface{} // 用户ID + Username interface{} // 用户账号 + Password interface{} // 密码 + Nickname interface{} // 用户昵称 + Remark interface{} // 备注 + DeptId interface{} // 部门ID + PostIds interface{} // 岗位编号数组 + Email interface{} // 用户邮箱 + Mobile interface{} // 手机号码 + Sex interface{} // 用户性别 + Avatar interface{} // 头像地址 + Status interface{} // 帐号状态(0正常 1停用) + LoginIp interface{} // 最后登录IP + LoginDate *gtime.Time // 最后登录时间 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/yudao_demo_01_contact.go b/internal/model/do/yudao_demo_01_contact.go new file mode 100644 index 0000000..a2f079b --- /dev/null +++ b/internal/model/do/yudao_demo_01_contact.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo01Contact is the golang structure of table yudao_demo01_contact for DAO operations like Where/Data. +type YudaoDemo01Contact struct { + g.Meta `orm:"table:yudao_demo01_contact, do:true"` + Id interface{} // 编号 + Name interface{} // 名字 + Sex interface{} // 性别 + Birthday *gtime.Time // 出生年 + Description interface{} // 简介 + Avatar interface{} // 头像 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/yudao_demo_02_category.go b/internal/model/do/yudao_demo_02_category.go new file mode 100644 index 0000000..8f82873 --- /dev/null +++ b/internal/model/do/yudao_demo_02_category.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo02Category is the golang structure of table yudao_demo02_category for DAO operations like Where/Data. +type YudaoDemo02Category struct { + g.Meta `orm:"table:yudao_demo02_category, do:true"` + Id interface{} // 编号 + Name interface{} // 名字 + ParentId interface{} // 父级编号 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/yudao_demo_03_course.go b/internal/model/do/yudao_demo_03_course.go new file mode 100644 index 0000000..316d9f3 --- /dev/null +++ b/internal/model/do/yudao_demo_03_course.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Course is the golang structure of table yudao_demo03_course for DAO operations like Where/Data. +type YudaoDemo03Course struct { + g.Meta `orm:"table:yudao_demo03_course, do:true"` + Id interface{} // 编号 + StudentId interface{} // 学生编号 + Name interface{} // 名字 + Score interface{} // 分数 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/yudao_demo_03_grade.go b/internal/model/do/yudao_demo_03_grade.go new file mode 100644 index 0000000..a34f18e --- /dev/null +++ b/internal/model/do/yudao_demo_03_grade.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Grade is the golang structure of table yudao_demo03_grade for DAO operations like Where/Data. +type YudaoDemo03Grade struct { + g.Meta `orm:"table:yudao_demo03_grade, do:true"` + Id interface{} // 编号 + StudentId interface{} // 学生编号 + Name interface{} // 名字 + Teacher interface{} // 班主任 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/do/yudao_demo_03_student.go b/internal/model/do/yudao_demo_03_student.go new file mode 100644 index 0000000..c4905f1 --- /dev/null +++ b/internal/model/do/yudao_demo_03_student.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package do + +import ( + "github.com/gogf/gf/v2/frame/g" + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Student is the golang structure of table yudao_demo03_student for DAO operations like Where/Data. +type YudaoDemo03Student struct { + g.Meta `orm:"table:yudao_demo03_student, do:true"` + Id interface{} // 编号 + Name interface{} // 名字 + Sex interface{} // 性别 + Birthday *gtime.Time // 出生日期 + Description interface{} // 简介 + Creator interface{} // 创建者 + CreateTime *gtime.Time // 创建时间 + Updater interface{} // 更新者 + UpdateTime *gtime.Time // 更新时间 + Deleted interface{} // 是否删除 + TenantId interface{} // 租户编号 +} diff --git a/internal/model/entity/.gitkeep b/internal/model/entity/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/internal/model/entity/epic_artifact_info.go b/internal/model/entity/epic_artifact_info.go new file mode 100644 index 0000000..c907626 --- /dev/null +++ b/internal/model/entity/epic_artifact_info.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicArtifactInfo is the golang structure for table epic_artifact_info. +type EpicArtifactInfo struct { + Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号 + ArtifactName string `json:"artifactName" orm:"artifact_name" description:"配置编号"` // 配置编号 + ArtifactCode string `json:"artifactCode" orm:"artifact_code" description:"文件名"` // 文件名 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + StatsHealth int `json:"statsHealth" orm:"stats_health" description:"文件路径"` // 文件路径 + StatsAttack int `json:"statsAttack" orm:"stats_attack" description:"文件路径"` // 文件路径 + StatsDefense int `json:"statsDefense" orm:"stats_defense" description:"文件路径"` // 文件路径 + Rarity string `json:"rarity" orm:"rarity" description:"文件路径"` // 文件路径 + Role string `json:"role" orm:"role" description:"文件路径"` // 文件路径 + ArtifactNameEn string `json:"artifactNameEn" orm:"artifact_name_en" description:"配置编号"` // 配置编号 + ImageUrl string `json:"imageUrl" orm:"image_url" description:"图片地址"` // 图片地址 +} diff --git a/internal/model/entity/epic_gvg_attack_teams.go b/internal/model/entity/epic_gvg_attack_teams.go new file mode 100644 index 0000000..d648a74 --- /dev/null +++ b/internal/model/entity/epic_gvg_attack_teams.go @@ -0,0 +1,20 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgAttackTeams is the golang structure for table epic_gvg_attack_teams. +type EpicGvgAttackTeams struct { + Id int64 `json:"id" orm:"id" description:"id"` // id + AttackHeroes string `json:"attackHeroes" orm:"attack_heroes" description:"进攻角色"` // 进攻角色 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/epic_gvg_defense_attack_mapping.go b/internal/model/entity/epic_gvg_defense_attack_mapping.go new file mode 100644 index 0000000..b019c4e --- /dev/null +++ b/internal/model/entity/epic_gvg_defense_attack_mapping.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgDefenseAttackMapping is the golang structure for table epic_gvg_defense_attack_mapping. +type EpicGvgDefenseAttackMapping struct { + Id int64 `json:"id" orm:"id" description:"id"` // id + DefenseId int64 `json:"defenseId" orm:"defense_id" description:"防守阵容"` // 防守阵容 + AttackId int64 `json:"attackId" orm:"attack_id" description:"进攻阵容"` // 进攻阵容 + EquipmentInfo string `json:"equipmentInfo" orm:"equipment_info" description:""` // + Artifacts string `json:"artifacts" orm:"artifacts" description:""` // + BattleStrategy string `json:"battleStrategy" orm:"battle_strategy" description:""` // + Prerequisites string `json:"prerequisites" orm:"prerequisites" description:""` // + ImportantNotes string `json:"importantNotes" orm:"important_notes" description:""` // + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/epic_gvg_defense_teams.go b/internal/model/entity/epic_gvg_defense_teams.go new file mode 100644 index 0000000..a01d540 --- /dev/null +++ b/internal/model/entity/epic_gvg_defense_teams.go @@ -0,0 +1,20 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicGvgDefenseTeams is the golang structure for table epic_gvg_defense_teams. +type EpicGvgDefenseTeams struct { + Id int64 `json:"id" orm:"id" description:"id"` // id + DefenseHeroes string `json:"defenseHeroes" orm:"defense_heroes" description:"防守角色"` // 防守角色 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/epic_hero_info.go b/internal/model/entity/epic_hero_info.go new file mode 100644 index 0000000..fc2b31d --- /dev/null +++ b/internal/model/entity/epic_hero_info.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicHeroInfo is the golang structure for table epic_hero_info. +type EpicHeroInfo struct { + Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号 + HeroName string `json:"heroName" orm:"hero_name" description:"配置编号"` // 配置编号 + HeroCode string `json:"heroCode" orm:"hero_code" description:"文件名"` // 文件名 + HeroAttrLv60 string `json:"heroAttrLv60" orm:"hero_attr_lv60" description:"文件路径"` // 文件路径 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + NickName string `json:"nickName" orm:"nick_name" description:"配置编号"` // 配置编号 + Rarity string `json:"rarity" orm:"rarity" description:"配置编号"` // 配置编号 + Role string `json:"role" orm:"role" description:"配置编号"` // 配置编号 + Zodiac string `json:"zodiac" orm:"zodiac" description:"配置编号"` // 配置编号 + HeadImgUrl string `json:"headImgUrl" orm:"head_img_url" description:"配置编号"` // 配置编号 + Attribute string `json:"attribute" orm:"attribute" description:"配置编号"` // 配置编号 + Remark string `json:"remark" orm:"remark" description:"配置编号"` // 配置编号 +} diff --git a/internal/model/entity/epic_hero_user_build.go b/internal/model/entity/epic_hero_user_build.go new file mode 100644 index 0000000..7d8c5b1 --- /dev/null +++ b/internal/model/entity/epic_hero_user_build.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// EpicHeroUserBuild is the golang structure for table epic_hero_user_build. +type EpicHeroUserBuild struct { + Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号 + ArtifactCode string `json:"artifactCode" orm:"artifact_code" description:"配置编号"` // 配置编号 + HeroCode string `json:"heroCode" orm:"hero_code" description:"文件名"` // 文件名 + HeroHeathBuild float64 `json:"heroHeathBuild" orm:"hero_heath_build" description:"文件路径"` // 文件路径 + HeroAttackBuild float64 `json:"heroAttackBuild" orm:"hero_attack_build" description:"文件路径"` // 文件路径 + HeroDefBuild float64 `json:"heroDefBuild" orm:"hero_def_build" description:"文件路径"` // 文件路径 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/fribble_hero_set.go b/internal/model/entity/fribble_hero_set.go new file mode 100644 index 0000000..331b63f --- /dev/null +++ b/internal/model/entity/fribble_hero_set.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// FribbleHeroSet is the golang structure for table fribble_hero_set. +type FribbleHeroSet struct { + Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号 + HeroCode string `json:"heroCode" orm:"hero_code" description:"配置编号"` // 配置编号 + JsonContent string `json:"jsonContent" orm:"json_content" description:"文件名"` // 文件名 + HeroName string `json:"heroName" orm:"hero_name" description:"文件路径"` // 文件路径 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + SuccessGet int `json:"successGet" orm:"success_get" description:""` // +} diff --git a/internal/model/entity/gear_set_info.go b/internal/model/entity/gear_set_info.go new file mode 100644 index 0000000..31c81ad --- /dev/null +++ b/internal/model/entity/gear_set_info.go @@ -0,0 +1,36 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// GearSetInfo is the golang structure for table gear_set_info. +type GearSetInfo struct { + Id int64 `json:"id" orm:"id" description:"装备ID"` // 装备ID + Level int `json:"level" orm:"level" description:"装备等级"` // 装备等级 + GearId int64 `json:"gearId" orm:"gear_id" description:""` // + Enhance int `json:"enhance" orm:"enhance" description:"强化等级"` // 强化等级 + GearType string `json:"gearType" orm:"gear_type" description:"类型,六个部位之一"` // 类型,六个部位之一 + GearSetType string `json:"gearSetType" orm:"gear_set_type" description:""` // + MainStatType string `json:"mainStatType" orm:"main_stat_type" description:"主属性类型"` // 主属性类型 + MainStatValue int `json:"mainStatValue" orm:"main_stat_value" description:"主属性值"` // 主属性值 + SubStatOneType string `json:"subStatOneType" orm:"sub_stat_one_type" description:"副属性1类型"` // 副属性1类型 + SubStatOneValue int `json:"subStatOneValue" orm:"sub_stat_one_value" description:"副属性1值"` // 副属性1值 + SubStatTwoType string `json:"subStatTwoType" orm:"sub_stat_two_type" description:"副属性2类型"` // 副属性2类型 + SubStatTwoValue int `json:"subStatTwoValue" orm:"sub_stat_two_value" description:"副属性2值"` // 副属性2值 + SubStatThreeType string `json:"subStatThreeType" orm:"sub_stat_three_type" description:"副属性3类型"` // 副属性3类型 + SubStatThreeValue int `json:"subStatThreeValue" orm:"sub_stat_three_value" description:"副属性3值"` // 副属性3值 + SubStatFourType string `json:"subStatFourType" orm:"sub_stat_four_type" description:"副属性4类型"` // 副属性4类型 + SubStatFourValue int `json:"subStatFourValue" orm:"sub_stat_four_value" description:"副属性4值"` // 副属性4值 + AccountCode string `json:"accountCode" orm:"account_code" description:"账号标识符"` // 账号标识符 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/infra_api_access_log.go b/internal/model/entity/infra_api_access_log.go new file mode 100644 index 0000000..d1b0b47 --- /dev/null +++ b/internal/model/entity/infra_api_access_log.go @@ -0,0 +1,38 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraApiAccessLog is the golang structure for table infra_api_access_log. +type InfraApiAccessLog struct { + Id int64 `json:"id" orm:"id" description:"日志主键"` // 日志主键 + TraceId string `json:"traceId" orm:"trace_id" description:"链路追踪编号"` // 链路追踪编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ApplicationName string `json:"applicationName" orm:"application_name" description:"应用名"` // 应用名 + RequestMethod string `json:"requestMethod" orm:"request_method" description:"请求方法名"` // 请求方法名 + RequestUrl string `json:"requestUrl" orm:"request_url" description:"请求地址"` // 请求地址 + RequestParams string `json:"requestParams" orm:"request_params" description:"请求参数"` // 请求参数 + ResponseBody string `json:"responseBody" orm:"response_body" description:"响应结果"` // 响应结果 + UserIp string `json:"userIp" orm:"user_ip" description:"用户 IP"` // 用户 IP + UserAgent string `json:"userAgent" orm:"user_agent" description:"浏览器 UA"` // 浏览器 UA + OperateModule string `json:"operateModule" orm:"operate_module" description:"操作模块"` // 操作模块 + OperateName string `json:"operateName" orm:"operate_name" description:"操作名"` // 操作名 + OperateType int `json:"operateType" orm:"operate_type" description:"操作分类"` // 操作分类 + BeginTime *gtime.Time `json:"beginTime" orm:"begin_time" description:"开始请求时间"` // 开始请求时间 + EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"结束请求时间"` // 结束请求时间 + Duration int `json:"duration" orm:"duration" description:"执行时长"` // 执行时长 + ResultCode int `json:"resultCode" orm:"result_code" description:"结果码"` // 结果码 + ResultMsg string `json:"resultMsg" orm:"result_msg" description:"结果提示"` // 结果提示 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/infra_api_error_log.go b/internal/model/entity/infra_api_error_log.go new file mode 100644 index 0000000..c29cfa1 --- /dev/null +++ b/internal/model/entity/infra_api_error_log.go @@ -0,0 +1,41 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraApiErrorLog is the golang structure for table infra_api_error_log. +type InfraApiErrorLog struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + TraceId string `json:"traceId" orm:"trace_id" description:"链路追踪编号"` // 链路追踪编号 + UserId int `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ApplicationName string `json:"applicationName" orm:"application_name" description:"应用名"` // 应用名 + RequestMethod string `json:"requestMethod" orm:"request_method" description:"请求方法名"` // 请求方法名 + RequestUrl string `json:"requestUrl" orm:"request_url" description:"请求地址"` // 请求地址 + RequestParams string `json:"requestParams" orm:"request_params" description:"请求参数"` // 请求参数 + UserIp string `json:"userIp" orm:"user_ip" description:"用户 IP"` // 用户 IP + UserAgent string `json:"userAgent" orm:"user_agent" description:"浏览器 UA"` // 浏览器 UA + ExceptionTime *gtime.Time `json:"exceptionTime" orm:"exception_time" description:"异常发生时间"` // 异常发生时间 + ExceptionName string `json:"exceptionName" orm:"exception_name" description:"异常名"` // 异常名 + ExceptionMessage string `json:"exceptionMessage" orm:"exception_message" description:"异常导致的消息"` // 异常导致的消息 + ExceptionRootCauseMessage string `json:"exceptionRootCauseMessage" orm:"exception_root_cause_message" description:"异常导致的根消息"` // 异常导致的根消息 + ExceptionStackTrace string `json:"exceptionStackTrace" orm:"exception_stack_trace" description:"异常的栈轨迹"` // 异常的栈轨迹 + ExceptionClassName string `json:"exceptionClassName" orm:"exception_class_name" description:"异常发生的类全名"` // 异常发生的类全名 + ExceptionFileName string `json:"exceptionFileName" orm:"exception_file_name" description:"异常发生的类文件"` // 异常发生的类文件 + ExceptionMethodName string `json:"exceptionMethodName" orm:"exception_method_name" description:"异常发生的方法名"` // 异常发生的方法名 + ExceptionLineNumber int `json:"exceptionLineNumber" orm:"exception_line_number" description:"异常发生的方法所在行"` // 异常发生的方法所在行 + ProcessStatus int `json:"processStatus" orm:"process_status" description:"处理状态"` // 处理状态 + ProcessTime *gtime.Time `json:"processTime" orm:"process_time" description:"处理时间"` // 处理时间 + ProcessUserId int `json:"processUserId" orm:"process_user_id" description:"处理用户编号"` // 处理用户编号 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/infra_codegen_column.go b/internal/model/entity/infra_codegen_column.go new file mode 100644 index 0000000..ea69694 --- /dev/null +++ b/internal/model/entity/infra_codegen_column.go @@ -0,0 +1,36 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraCodegenColumn is the golang structure for table infra_codegen_column. +type InfraCodegenColumn struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + TableId int64 `json:"tableId" orm:"table_id" description:"表编号"` // 表编号 + ColumnName string `json:"columnName" orm:"column_name" description:"字段名"` // 字段名 + DataType string `json:"dataType" orm:"data_type" description:"字段类型"` // 字段类型 + ColumnComment string `json:"columnComment" orm:"column_comment" description:"字段描述"` // 字段描述 + Nullable bool `json:"nullable" orm:"nullable" description:"是否允许为空"` // 是否允许为空 + PrimaryKey bool `json:"primaryKey" orm:"primary_key" description:"是否主键"` // 是否主键 + OrdinalPosition int `json:"ordinalPosition" orm:"ordinal_position" description:"排序"` // 排序 + JavaType string `json:"javaType" orm:"java_type" description:"Java 属性类型"` // Java 属性类型 + JavaField string `json:"javaField" orm:"java_field" description:"Java 属性名"` // Java 属性名 + DictType string `json:"dictType" orm:"dict_type" description:"字典类型"` // 字典类型 + Example string `json:"example" orm:"example" description:"数据示例"` // 数据示例 + CreateOperation bool `json:"createOperation" orm:"create_operation" description:"是否为 Create 创建操作的字段"` // 是否为 Create 创建操作的字段 + UpdateOperation bool `json:"updateOperation" orm:"update_operation" description:"是否为 Update 更新操作的字段"` // 是否为 Update 更新操作的字段 + ListOperation bool `json:"listOperation" orm:"list_operation" description:"是否为 List 查询操作的字段"` // 是否为 List 查询操作的字段 + ListOperationCondition string `json:"listOperationCondition" orm:"list_operation_condition" description:"List 查询操作的条件类型"` // List 查询操作的条件类型 + ListOperationResult bool `json:"listOperationResult" orm:"list_operation_result" description:"是否为 List 查询操作的返回字段"` // 是否为 List 查询操作的返回字段 + HtmlType string `json:"htmlType" orm:"html_type" description:"显示类型"` // 显示类型 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_codegen_table.go b/internal/model/entity/infra_codegen_table.go new file mode 100644 index 0000000..128b187 --- /dev/null +++ b/internal/model/entity/infra_codegen_table.go @@ -0,0 +1,37 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraCodegenTable is the golang structure for table infra_codegen_table. +type InfraCodegenTable struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + DataSourceConfigId int64 `json:"dataSourceConfigId" orm:"data_source_config_id" description:"数据源配置的编号"` // 数据源配置的编号 + Scene int `json:"scene" orm:"scene" description:"生成场景"` // 生成场景 + TableName string `json:"tableName" orm:"table_name" description:"表名称"` // 表名称 + TableComment string `json:"tableComment" orm:"table_comment" description:"表描述"` // 表描述 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + ModuleName string `json:"moduleName" orm:"module_name" description:"模块名"` // 模块名 + BusinessName string `json:"businessName" orm:"business_name" description:"业务名"` // 业务名 + ClassName string `json:"className" orm:"class_name" description:"类名称"` // 类名称 + ClassComment string `json:"classComment" orm:"class_comment" description:"类描述"` // 类描述 + Author string `json:"author" orm:"author" description:"作者"` // 作者 + TemplateType int `json:"templateType" orm:"template_type" description:"模板类型"` // 模板类型 + FrontType int `json:"frontType" orm:"front_type" description:"前端类型"` // 前端类型 + ParentMenuId int64 `json:"parentMenuId" orm:"parent_menu_id" description:"父菜单编号"` // 父菜单编号 + MasterTableId int64 `json:"masterTableId" orm:"master_table_id" description:"主表的编号"` // 主表的编号 + SubJoinColumnId int64 `json:"subJoinColumnId" orm:"sub_join_column_id" description:"子表关联主表的字段编号"` // 子表关联主表的字段编号 + SubJoinMany bool `json:"subJoinMany" orm:"sub_join_many" description:"主表与子表是否一对多"` // 主表与子表是否一对多 + TreeParentColumnId int64 `json:"treeParentColumnId" orm:"tree_parent_column_id" description:"树表的父字段编号"` // 树表的父字段编号 + TreeNameColumnId int64 `json:"treeNameColumnId" orm:"tree_name_column_id" description:"树表的名字字段编号"` // 树表的名字字段编号 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_config.go b/internal/model/entity/infra_config.go new file mode 100644 index 0000000..203d8bd --- /dev/null +++ b/internal/model/entity/infra_config.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraConfig is the golang structure for table infra_config. +type InfraConfig struct { + Id int64 `json:"id" orm:"id" description:"参数主键"` // 参数主键 + Category string `json:"category" orm:"category" description:"参数分组"` // 参数分组 + Type int `json:"type" orm:"type" description:"参数类型"` // 参数类型 + Name string `json:"name" orm:"name" description:"参数名称"` // 参数名称 + ConfigKey string `json:"configKey" orm:"config_key" description:"参数键名"` // 参数键名 + Value string `json:"value" orm:"value" description:"参数键值"` // 参数键值 + Visible bool `json:"visible" orm:"visible" description:"是否可见"` // 是否可见 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_data_source_config.go b/internal/model/entity/infra_data_source_config.go new file mode 100644 index 0000000..885481a --- /dev/null +++ b/internal/model/entity/infra_data_source_config.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraDataSourceConfig is the golang structure for table infra_data_source_config. +type InfraDataSourceConfig struct { + Id int64 `json:"id" orm:"id" description:"主键编号"` // 主键编号 + Name string `json:"name" orm:"name" description:"参数名称"` // 参数名称 + Url string `json:"url" orm:"url" description:"数据源连接"` // 数据源连接 + Username string `json:"username" orm:"username" description:"用户名"` // 用户名 + Password string `json:"password" orm:"password" description:"密码"` // 密码 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_file.go b/internal/model/entity/infra_file.go new file mode 100644 index 0000000..ed649dc --- /dev/null +++ b/internal/model/entity/infra_file.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFile is the golang structure for table infra_file. +type InfraFile struct { + Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号 + ConfigId int64 `json:"configId" orm:"config_id" description:"配置编号"` // 配置编号 + Name string `json:"name" orm:"name" description:"文件名"` // 文件名 + Path string `json:"path" orm:"path" description:"文件路径"` // 文件路径 + Url string `json:"url" orm:"url" description:"文件 URL"` // 文件 URL + Type string `json:"type" orm:"type" description:"文件类型"` // 文件类型 + Size int `json:"size" orm:"size" description:"文件大小"` // 文件大小 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_file_config.go b/internal/model/entity/infra_file_config.go new file mode 100644 index 0000000..c4bae9b --- /dev/null +++ b/internal/model/entity/infra_file_config.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFileConfig is the golang structure for table infra_file_config. +type InfraFileConfig struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"配置名"` // 配置名 + Storage int `json:"storage" orm:"storage" description:"存储器"` // 存储器 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Master bool `json:"master" orm:"master" description:"是否为主配置"` // 是否为主配置 + Config string `json:"config" orm:"config" description:"存储配置"` // 存储配置 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_file_content.go b/internal/model/entity/infra_file_content.go new file mode 100644 index 0000000..d052088 --- /dev/null +++ b/internal/model/entity/infra_file_content.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraFileContent is the golang structure for table infra_file_content. +type InfraFileContent struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + ConfigId int64 `json:"configId" orm:"config_id" description:"配置编号"` // 配置编号 + Path string `json:"path" orm:"path" description:"文件路径"` // 文件路径 + Content []byte `json:"content" orm:"content" description:"文件内容"` // 文件内容 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_job.go b/internal/model/entity/infra_job.go new file mode 100644 index 0000000..ab1503b --- /dev/null +++ b/internal/model/entity/infra_job.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraJob is the golang structure for table infra_job. +type InfraJob struct { + Id int64 `json:"id" orm:"id" description:"任务编号"` // 任务编号 + Name string `json:"name" orm:"name" description:"任务名称"` // 任务名称 + Status int `json:"status" orm:"status" description:"任务状态"` // 任务状态 + HandlerName string `json:"handlerName" orm:"handler_name" description:"处理器的名字"` // 处理器的名字 + HandlerParam string `json:"handlerParam" orm:"handler_param" description:"处理器的参数"` // 处理器的参数 + CronExpression string `json:"cronExpression" orm:"cron_expression" description:"CRON 表达式"` // CRON 表达式 + RetryCount int `json:"retryCount" orm:"retry_count" description:"重试次数"` // 重试次数 + RetryInterval int `json:"retryInterval" orm:"retry_interval" description:"重试间隔"` // 重试间隔 + MonitorTimeout int `json:"monitorTimeout" orm:"monitor_timeout" description:"监控超时时间"` // 监控超时时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/infra_job_log.go b/internal/model/entity/infra_job_log.go new file mode 100644 index 0000000..7eec46e --- /dev/null +++ b/internal/model/entity/infra_job_log.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// InfraJobLog is the golang structure for table infra_job_log. +type InfraJobLog struct { + Id int64 `json:"id" orm:"id" description:"日志编号"` // 日志编号 + JobId int64 `json:"jobId" orm:"job_id" description:"任务编号"` // 任务编号 + HandlerName string `json:"handlerName" orm:"handler_name" description:"处理器的名字"` // 处理器的名字 + HandlerParam string `json:"handlerParam" orm:"handler_param" description:"处理器的参数"` // 处理器的参数 + ExecuteIndex int `json:"executeIndex" orm:"execute_index" description:"第几次执行"` // 第几次执行 + BeginTime *gtime.Time `json:"beginTime" orm:"begin_time" description:"开始执行时间"` // 开始执行时间 + EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"结束执行时间"` // 结束执行时间 + Duration int `json:"duration" orm:"duration" description:"执行时长"` // 执行时长 + Status int `json:"status" orm:"status" description:"任务状态"` // 任务状态 + Result string `json:"result" orm:"result" description:"结果数据"` // 结果数据 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/qrtz_blob_triggers.go b/internal/model/entity/qrtz_blob_triggers.go new file mode 100644 index 0000000..7fcb9b5 --- /dev/null +++ b/internal/model/entity/qrtz_blob_triggers.go @@ -0,0 +1,13 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzBlobTriggers is the golang structure for table qrtz_blob_triggers. +type QrtzBlobTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + BlobData []byte `json:"bLOBDATA" orm:"BLOB_DATA" description:""` // +} diff --git a/internal/model/entity/qrtz_calendars.go b/internal/model/entity/qrtz_calendars.go new file mode 100644 index 0000000..563054b --- /dev/null +++ b/internal/model/entity/qrtz_calendars.go @@ -0,0 +1,12 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzCalendars is the golang structure for table qrtz_calendars. +type QrtzCalendars struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + CalendarName string `json:"cALENDARNAME" orm:"CALENDAR_NAME" description:""` // + Calendar []byte `json:"cALENDAR" orm:"CALENDAR" description:""` // +} diff --git a/internal/model/entity/qrtz_cron_triggers.go b/internal/model/entity/qrtz_cron_triggers.go new file mode 100644 index 0000000..d1f57b0 --- /dev/null +++ b/internal/model/entity/qrtz_cron_triggers.go @@ -0,0 +1,14 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzCronTriggers is the golang structure for table qrtz_cron_triggers. +type QrtzCronTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + CronExpression string `json:"cRONEXPRESSION" orm:"CRON_EXPRESSION" description:""` // + TimeZoneId string `json:"tIMEZONEID" orm:"TIME_ZONE_ID" description:""` // +} diff --git a/internal/model/entity/qrtz_fired_triggers.go b/internal/model/entity/qrtz_fired_triggers.go new file mode 100644 index 0000000..347ae0f --- /dev/null +++ b/internal/model/entity/qrtz_fired_triggers.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzFiredTriggers is the golang structure for table qrtz_fired_triggers. +type QrtzFiredTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + EntryId string `json:"eNTRYID" orm:"ENTRY_ID" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + InstanceName string `json:"iNSTANCENAME" orm:"INSTANCE_NAME" description:""` // + FiredTime int64 `json:"fIREDTIME" orm:"FIRED_TIME" description:""` // + SchedTime int64 `json:"sCHEDTIME" orm:"SCHED_TIME" description:""` // + Priority int `json:"pRIORITY" orm:"PRIORITY" description:""` // + State string `json:"sTATE" orm:"STATE" description:""` // + JobName string `json:"jOBNAME" orm:"JOB_NAME" description:""` // + JobGroup string `json:"jOBGROUP" orm:"JOB_GROUP" description:""` // + IsNonconcurrent string `json:"iSNONCONCURRENT" orm:"IS_NONCONCURRENT" description:""` // + RequestsRecovery string `json:"rEQUESTSRECOVERY" orm:"REQUESTS_RECOVERY" description:""` // +} diff --git a/internal/model/entity/qrtz_job_details.go b/internal/model/entity/qrtz_job_details.go new file mode 100644 index 0000000..29ec25f --- /dev/null +++ b/internal/model/entity/qrtz_job_details.go @@ -0,0 +1,19 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzJobDetails is the golang structure for table qrtz_job_details. +type QrtzJobDetails struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + JobName string `json:"jOBNAME" orm:"JOB_NAME" description:""` // + JobGroup string `json:"jOBGROUP" orm:"JOB_GROUP" description:""` // + Description string `json:"dESCRIPTION" orm:"DESCRIPTION" description:""` // + JobClassName string `json:"jOBCLASSNAME" orm:"JOB_CLASS_NAME" description:""` // + IsDurable string `json:"iSDURABLE" orm:"IS_DURABLE" description:""` // + IsNonconcurrent string `json:"iSNONCONCURRENT" orm:"IS_NONCONCURRENT" description:""` // + IsUpdateData string `json:"iSUPDATEDATA" orm:"IS_UPDATE_DATA" description:""` // + RequestsRecovery string `json:"rEQUESTSRECOVERY" orm:"REQUESTS_RECOVERY" description:""` // + JobData []byte `json:"jOBDATA" orm:"JOB_DATA" description:""` // +} diff --git a/internal/model/entity/qrtz_locks.go b/internal/model/entity/qrtz_locks.go new file mode 100644 index 0000000..23ce9e8 --- /dev/null +++ b/internal/model/entity/qrtz_locks.go @@ -0,0 +1,11 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzLocks is the golang structure for table qrtz_locks. +type QrtzLocks struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + LockName string `json:"lOCKNAME" orm:"LOCK_NAME" description:""` // +} diff --git a/internal/model/entity/qrtz_paused_trigger_grps.go b/internal/model/entity/qrtz_paused_trigger_grps.go new file mode 100644 index 0000000..76551c4 --- /dev/null +++ b/internal/model/entity/qrtz_paused_trigger_grps.go @@ -0,0 +1,11 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzPausedTriggerGrps is the golang structure for table qrtz_paused_trigger_grps. +type QrtzPausedTriggerGrps struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // +} diff --git a/internal/model/entity/qrtz_scheduler_state.go b/internal/model/entity/qrtz_scheduler_state.go new file mode 100644 index 0000000..53dcb46 --- /dev/null +++ b/internal/model/entity/qrtz_scheduler_state.go @@ -0,0 +1,13 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzSchedulerState is the golang structure for table qrtz_scheduler_state. +type QrtzSchedulerState struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + InstanceName string `json:"iNSTANCENAME" orm:"INSTANCE_NAME" description:""` // + LastCheckinTime int64 `json:"lASTCHECKINTIME" orm:"LAST_CHECKIN_TIME" description:""` // + CheckinInterval int64 `json:"cHECKININTERVAL" orm:"CHECKIN_INTERVAL" description:""` // +} diff --git a/internal/model/entity/qrtz_simple_triggers.go b/internal/model/entity/qrtz_simple_triggers.go new file mode 100644 index 0000000..a8cba73 --- /dev/null +++ b/internal/model/entity/qrtz_simple_triggers.go @@ -0,0 +1,15 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzSimpleTriggers is the golang structure for table qrtz_simple_triggers. +type QrtzSimpleTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + RepeatCount int64 `json:"rEPEATCOUNT" orm:"REPEAT_COUNT" description:""` // + RepeatInterval int64 `json:"rEPEATINTERVAL" orm:"REPEAT_INTERVAL" description:""` // + TimesTriggered int64 `json:"tIMESTRIGGERED" orm:"TIMES_TRIGGERED" description:""` // +} diff --git a/internal/model/entity/qrtz_simprop_triggers.go b/internal/model/entity/qrtz_simprop_triggers.go new file mode 100644 index 0000000..fc27eb9 --- /dev/null +++ b/internal/model/entity/qrtz_simprop_triggers.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzSimpropTriggers is the golang structure for table qrtz_simprop_triggers. +type QrtzSimpropTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + StrProp1 string `json:"sTRPROP1" orm:"STR_PROP_1" description:""` // + StrProp2 string `json:"sTRPROP2" orm:"STR_PROP_2" description:""` // + StrProp3 string `json:"sTRPROP3" orm:"STR_PROP_3" description:""` // + IntProp1 int `json:"iNTPROP1" orm:"INT_PROP_1" description:""` // + IntProp2 int `json:"iNTPROP2" orm:"INT_PROP_2" description:""` // + LongProp1 int64 `json:"lONGPROP1" orm:"LONG_PROP_1" description:""` // + LongProp2 int64 `json:"lONGPROP2" orm:"LONG_PROP_2" description:""` // + DecProp1 float64 `json:"dECPROP1" orm:"DEC_PROP_1" description:""` // + DecProp2 float64 `json:"dECPROP2" orm:"DEC_PROP_2" description:""` // + BoolProp1 string `json:"bOOLPROP1" orm:"BOOL_PROP_1" description:""` // + BoolProp2 string `json:"bOOLPROP2" orm:"BOOL_PROP_2" description:""` // +} diff --git a/internal/model/entity/qrtz_triggers.go b/internal/model/entity/qrtz_triggers.go new file mode 100644 index 0000000..314dc29 --- /dev/null +++ b/internal/model/entity/qrtz_triggers.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +// QrtzTriggers is the golang structure for table qrtz_triggers. +type QrtzTriggers struct { + SchedName string `json:"sCHEDNAME" orm:"SCHED_NAME" description:""` // + TriggerName string `json:"tRIGGERNAME" orm:"TRIGGER_NAME" description:""` // + TriggerGroup string `json:"tRIGGERGROUP" orm:"TRIGGER_GROUP" description:""` // + JobName string `json:"jOBNAME" orm:"JOB_NAME" description:""` // + JobGroup string `json:"jOBGROUP" orm:"JOB_GROUP" description:""` // + Description string `json:"dESCRIPTION" orm:"DESCRIPTION" description:""` // + NextFireTime int64 `json:"nEXTFIRETIME" orm:"NEXT_FIRE_TIME" description:""` // + PrevFireTime int64 `json:"pREVFIRETIME" orm:"PREV_FIRE_TIME" description:""` // + Priority int `json:"pRIORITY" orm:"PRIORITY" description:""` // + TriggerState string `json:"tRIGGERSTATE" orm:"TRIGGER_STATE" description:""` // + TriggerType string `json:"tRIGGERTYPE" orm:"TRIGGER_TYPE" description:""` // + StartTime int64 `json:"sTARTTIME" orm:"START_TIME" description:""` // + EndTime int64 `json:"eNDTIME" orm:"END_TIME" description:""` // + CalendarName string `json:"cALENDARNAME" orm:"CALENDAR_NAME" description:""` // + MisfireInstr int `json:"mISFIREINSTR" orm:"MISFIRE_INSTR" description:""` // + JobData []byte `json:"jOBDATA" orm:"JOB_DATA" description:""` // +} diff --git a/internal/model/entity/system_dept.go b/internal/model/entity/system_dept.go new file mode 100644 index 0000000..1a7095d --- /dev/null +++ b/internal/model/entity/system_dept.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDept is the golang structure for table system_dept. +type SystemDept struct { + Id int64 `json:"id" orm:"id" description:"部门id"` // 部门id + Name string `json:"name" orm:"name" description:"部门名称"` // 部门名称 + ParentId int64 `json:"parentId" orm:"parent_id" description:"父部门id"` // 父部门id + Sort int `json:"sort" orm:"sort" description:"显示顺序"` // 显示顺序 + LeaderUserId int64 `json:"leaderUserId" orm:"leader_user_id" description:"负责人"` // 负责人 + Phone string `json:"phone" orm:"phone" description:"联系电话"` // 联系电话 + Email string `json:"email" orm:"email" description:"邮箱"` // 邮箱 + Status int `json:"status" orm:"status" description:"部门状态(0正常 1停用)"` // 部门状态(0正常 1停用) + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_dict_data.go b/internal/model/entity/system_dict_data.go new file mode 100644 index 0000000..fa2f223 --- /dev/null +++ b/internal/model/entity/system_dict_data.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDictData is the golang structure for table system_dict_data. +type SystemDictData struct { + Id int64 `json:"id" orm:"id" description:"字典编码"` // 字典编码 + Sort int `json:"sort" orm:"sort" description:"字典排序"` // 字典排序 + Label string `json:"label" orm:"label" description:"字典标签"` // 字典标签 + Value string `json:"value" orm:"value" description:"字典键值"` // 字典键值 + DictType string `json:"dictType" orm:"dict_type" description:"字典类型"` // 字典类型 + Status int `json:"status" orm:"status" description:"状态(0正常 1停用)"` // 状态(0正常 1停用) + ColorType string `json:"colorType" orm:"color_type" description:"颜色类型"` // 颜色类型 + CssClass string `json:"cssClass" orm:"css_class" description:"css 样式"` // css 样式 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_dict_type.go b/internal/model/entity/system_dict_type.go new file mode 100644 index 0000000..41c0ba0 --- /dev/null +++ b/internal/model/entity/system_dict_type.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemDictType is the golang structure for table system_dict_type. +type SystemDictType struct { + Id int64 `json:"id" orm:"id" description:"字典主键"` // 字典主键 + Name string `json:"name" orm:"name" description:"字典名称"` // 字典名称 + Type string `json:"type" orm:"type" description:"字典类型"` // 字典类型 + Status int `json:"status" orm:"status" description:"状态(0正常 1停用)"` // 状态(0正常 1停用) + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + DeletedTime *gtime.Time `json:"deletedTime" orm:"deleted_time" description:"删除时间"` // 删除时间 +} diff --git a/internal/model/entity/system_login_log.go b/internal/model/entity/system_login_log.go new file mode 100644 index 0000000..05646d6 --- /dev/null +++ b/internal/model/entity/system_login_log.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemLoginLog is the golang structure for table system_login_log. +type SystemLoginLog struct { + Id int64 `json:"id" orm:"id" description:"访问ID"` // 访问ID + LogType int64 `json:"logType" orm:"log_type" description:"日志类型"` // 日志类型 + TraceId string `json:"traceId" orm:"trace_id" description:"链路追踪编号"` // 链路追踪编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + Username string `json:"username" orm:"username" description:"用户账号"` // 用户账号 + Result int `json:"result" orm:"result" description:"登陆结果"` // 登陆结果 + UserIp string `json:"userIp" orm:"user_ip" description:"用户 IP"` // 用户 IP + UserAgent string `json:"userAgent" orm:"user_agent" description:"浏览器 UA"` // 浏览器 UA + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_mail_account.go b/internal/model/entity/system_mail_account.go new file mode 100644 index 0000000..039ab21 --- /dev/null +++ b/internal/model/entity/system_mail_account.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailAccount is the golang structure for table system_mail_account. +type SystemMailAccount struct { + Id int64 `json:"id" orm:"id" description:"主键"` // 主键 + Mail string `json:"mail" orm:"mail" description:"邮箱"` // 邮箱 + Username string `json:"username" orm:"username" description:"用户名"` // 用户名 + Password string `json:"password" orm:"password" description:"密码"` // 密码 + Host string `json:"host" orm:"host" description:"SMTP 服务器域名"` // SMTP 服务器域名 + Port int `json:"port" orm:"port" description:"SMTP 服务器端口"` // SMTP 服务器端口 + SslEnable bool `json:"sslEnable" orm:"ssl_enable" description:"是否开启 SSL"` // 是否开启 SSL + StarttlsEnable bool `json:"starttlsEnable" orm:"starttls_enable" description:"是否开启 STARTTLS"` // 是否开启 STARTTLS + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_mail_log.go b/internal/model/entity/system_mail_log.go new file mode 100644 index 0000000..0bc9204 --- /dev/null +++ b/internal/model/entity/system_mail_log.go @@ -0,0 +1,34 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailLog is the golang structure for table system_mail_log. +type SystemMailLog struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ToMail string `json:"toMail" orm:"to_mail" description:"接收邮箱地址"` // 接收邮箱地址 + AccountId int64 `json:"accountId" orm:"account_id" description:"邮箱账号编号"` // 邮箱账号编号 + FromMail string `json:"fromMail" orm:"from_mail" description:"发送邮箱地址"` // 发送邮箱地址 + TemplateId int64 `json:"templateId" orm:"template_id" description:"模板编号"` // 模板编号 + TemplateCode string `json:"templateCode" orm:"template_code" description:"模板编码"` // 模板编码 + TemplateNickname string `json:"templateNickname" orm:"template_nickname" description:"模版发送人名称"` // 模版发送人名称 + TemplateTitle string `json:"templateTitle" orm:"template_title" description:"邮件标题"` // 邮件标题 + TemplateContent string `json:"templateContent" orm:"template_content" description:"邮件内容"` // 邮件内容 + TemplateParams string `json:"templateParams" orm:"template_params" description:"邮件参数"` // 邮件参数 + SendStatus int `json:"sendStatus" orm:"send_status" description:"发送状态"` // 发送状态 + SendTime *gtime.Time `json:"sendTime" orm:"send_time" description:"发送时间"` // 发送时间 + SendMessageId string `json:"sendMessageId" orm:"send_message_id" description:"发送返回的消息 ID"` // 发送返回的消息 ID + SendException string `json:"sendException" orm:"send_exception" description:"发送异常"` // 发送异常 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_mail_template.go b/internal/model/entity/system_mail_template.go new file mode 100644 index 0000000..abe21bd --- /dev/null +++ b/internal/model/entity/system_mail_template.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMailTemplate is the golang structure for table system_mail_template. +type SystemMailTemplate struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"模板名称"` // 模板名称 + Code string `json:"code" orm:"code" description:"模板编码"` // 模板编码 + AccountId int64 `json:"accountId" orm:"account_id" description:"发送的邮箱账号编号"` // 发送的邮箱账号编号 + Nickname string `json:"nickname" orm:"nickname" description:"发送人名称"` // 发送人名称 + Title string `json:"title" orm:"title" description:"模板标题"` // 模板标题 + Content string `json:"content" orm:"content" description:"模板内容"` // 模板内容 + Params string `json:"params" orm:"params" description:"参数数组"` // 参数数组 + Status int `json:"status" orm:"status" description:"开启状态"` // 开启状态 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_menu.go b/internal/model/entity/system_menu.go new file mode 100644 index 0000000..e346658 --- /dev/null +++ b/internal/model/entity/system_menu.go @@ -0,0 +1,32 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemMenu is the golang structure for table system_menu. +type SystemMenu struct { + Id int64 `json:"id" orm:"id" description:"菜单ID"` // 菜单ID + Name string `json:"name" orm:"name" description:"菜单名称"` // 菜单名称 + Permission string `json:"permission" orm:"permission" description:"权限标识"` // 权限标识 + Type int `json:"type" orm:"type" description:"菜单类型"` // 菜单类型 + Sort int `json:"sort" orm:"sort" description:"显示顺序"` // 显示顺序 + ParentId int64 `json:"parentId" orm:"parent_id" description:"父菜单ID"` // 父菜单ID + Path string `json:"path" orm:"path" description:"路由地址"` // 路由地址 + Icon string `json:"icon" orm:"icon" description:"菜单图标"` // 菜单图标 + Component string `json:"component" orm:"component" description:"组件路径"` // 组件路径 + ComponentName string `json:"componentName" orm:"component_name" description:"组件名"` // 组件名 + Status int `json:"status" orm:"status" description:"菜单状态"` // 菜单状态 + Visible bool `json:"visible" orm:"visible" description:"是否可见"` // 是否可见 + KeepAlive bool `json:"keepAlive" orm:"keep_alive" description:"是否缓存"` // 是否缓存 + AlwaysShow bool `json:"alwaysShow" orm:"always_show" description:"是否总是显示"` // 是否总是显示 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_notice.go b/internal/model/entity/system_notice.go new file mode 100644 index 0000000..bfb8c44 --- /dev/null +++ b/internal/model/entity/system_notice.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotice is the golang structure for table system_notice. +type SystemNotice struct { + Id int64 `json:"id" orm:"id" description:"公告ID"` // 公告ID + Title string `json:"title" orm:"title" description:"公告标题"` // 公告标题 + Content string `json:"content" orm:"content" description:"公告内容"` // 公告内容 + Type int `json:"type" orm:"type" description:"公告类型(1通知 2公告)"` // 公告类型(1通知 2公告) + Status int `json:"status" orm:"status" description:"公告状态(0正常 1关闭)"` // 公告状态(0正常 1关闭) + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_notify_message.go b/internal/model/entity/system_notify_message.go new file mode 100644 index 0000000..294f2c5 --- /dev/null +++ b/internal/model/entity/system_notify_message.go @@ -0,0 +1,30 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotifyMessage is the golang structure for table system_notify_message. +type SystemNotifyMessage struct { + Id int64 `json:"id" orm:"id" description:"用户ID"` // 用户ID + UserId int64 `json:"userId" orm:"user_id" description:"用户id"` // 用户id + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + TemplateId int64 `json:"templateId" orm:"template_id" description:"模版编号"` // 模版编号 + TemplateCode string `json:"templateCode" orm:"template_code" description:"模板编码"` // 模板编码 + TemplateNickname string `json:"templateNickname" orm:"template_nickname" description:"模版发送人名称"` // 模版发送人名称 + TemplateContent string `json:"templateContent" orm:"template_content" description:"模版内容"` // 模版内容 + TemplateType int `json:"templateType" orm:"template_type" description:"模版类型"` // 模版类型 + TemplateParams string `json:"templateParams" orm:"template_params" description:"模版参数"` // 模版参数 + ReadStatus bool `json:"readStatus" orm:"read_status" description:"是否已读"` // 是否已读 + ReadTime *gtime.Time `json:"readTime" orm:"read_time" description:"阅读时间"` // 阅读时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_notify_template.go b/internal/model/entity/system_notify_template.go new file mode 100644 index 0000000..b25d39b --- /dev/null +++ b/internal/model/entity/system_notify_template.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemNotifyTemplate is the golang structure for table system_notify_template. +type SystemNotifyTemplate struct { + Id int64 `json:"id" orm:"id" description:"主键"` // 主键 + Name string `json:"name" orm:"name" description:"模板名称"` // 模板名称 + Code string `json:"code" orm:"code" description:"模版编码"` // 模版编码 + Nickname string `json:"nickname" orm:"nickname" description:"发送人名称"` // 发送人名称 + Content string `json:"content" orm:"content" description:"模版内容"` // 模版内容 + Type int `json:"type" orm:"type" description:"类型"` // 类型 + Params string `json:"params" orm:"params" description:"参数数组"` // 参数数组 + Status int `json:"status" orm:"status" description:"状态"` // 状态 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_oauth_2_access_token.go b/internal/model/entity/system_oauth_2_access_token.go new file mode 100644 index 0000000..1d46271 --- /dev/null +++ b/internal/model/entity/system_oauth_2_access_token.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2AccessToken is the golang structure for table system_oauth2_access_token. +type SystemOauth2AccessToken struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + UserInfo string `json:"userInfo" orm:"user_info" description:"用户信息"` // 用户信息 + AccessToken string `json:"accessToken" orm:"access_token" description:"访问令牌"` // 访问令牌 + RefreshToken string `json:"refreshToken" orm:"refresh_token" description:"刷新令牌"` // 刷新令牌 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + Scopes string `json:"scopes" orm:"scopes" description:"授权范围"` // 授权范围 + ExpiresTime *gtime.Time `json:"expiresTime" orm:"expires_time" description:"过期时间"` // 过期时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_oauth_2_approve.go b/internal/model/entity/system_oauth_2_approve.go new file mode 100644 index 0000000..e0d81f6 --- /dev/null +++ b/internal/model/entity/system_oauth_2_approve.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Approve is the golang structure for table system_oauth2_approve. +type SystemOauth2Approve struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + Scope string `json:"scope" orm:"scope" description:"授权范围"` // 授权范围 + Approved bool `json:"approved" orm:"approved" description:"是否接受"` // 是否接受 + ExpiresTime *gtime.Time `json:"expiresTime" orm:"expires_time" description:"过期时间"` // 过期时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_oauth_2_client.go b/internal/model/entity/system_oauth_2_client.go new file mode 100644 index 0000000..2efb8f4 --- /dev/null +++ b/internal/model/entity/system_oauth_2_client.go @@ -0,0 +1,34 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Client is the golang structure for table system_oauth2_client. +type SystemOauth2Client struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + Secret string `json:"secret" orm:"secret" description:"客户端密钥"` // 客户端密钥 + Name string `json:"name" orm:"name" description:"应用名"` // 应用名 + Logo string `json:"logo" orm:"logo" description:"应用图标"` // 应用图标 + Description string `json:"description" orm:"description" description:"应用描述"` // 应用描述 + Status int `json:"status" orm:"status" description:"状态"` // 状态 + AccessTokenValiditySeconds int `json:"accessTokenValiditySeconds" orm:"access_token_validity_seconds" description:"访问令牌的有效期"` // 访问令牌的有效期 + RefreshTokenValiditySeconds int `json:"refreshTokenValiditySeconds" orm:"refresh_token_validity_seconds" description:"刷新令牌的有效期"` // 刷新令牌的有效期 + RedirectUris string `json:"redirectUris" orm:"redirect_uris" description:"可重定向的 URI 地址"` // 可重定向的 URI 地址 + AuthorizedGrantTypes string `json:"authorizedGrantTypes" orm:"authorized_grant_types" description:"授权类型"` // 授权类型 + Scopes string `json:"scopes" orm:"scopes" description:"授权范围"` // 授权范围 + AutoApproveScopes string `json:"autoApproveScopes" orm:"auto_approve_scopes" description:"自动通过的授权范围"` // 自动通过的授权范围 + Authorities string `json:"authorities" orm:"authorities" description:"权限"` // 权限 + ResourceIds string `json:"resourceIds" orm:"resource_ids" description:"资源"` // 资源 + AdditionalInformation string `json:"additionalInformation" orm:"additional_information" description:"附加信息"` // 附加信息 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_oauth_2_code.go b/internal/model/entity/system_oauth_2_code.go new file mode 100644 index 0000000..1dd5b26 --- /dev/null +++ b/internal/model/entity/system_oauth_2_code.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2Code is the golang structure for table system_oauth2_code. +type SystemOauth2Code struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + Code string `json:"code" orm:"code" description:"授权码"` // 授权码 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + Scopes string `json:"scopes" orm:"scopes" description:"授权范围"` // 授权范围 + ExpiresTime *gtime.Time `json:"expiresTime" orm:"expires_time" description:"过期时间"` // 过期时间 + RedirectUri string `json:"redirectUri" orm:"redirect_uri" description:"可重定向的 URI 地址"` // 可重定向的 URI 地址 + State string `json:"state" orm:"state" description:"状态"` // 状态 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_oauth_2_refresh_token.go b/internal/model/entity/system_oauth_2_refresh_token.go new file mode 100644 index 0000000..05c8b5f --- /dev/null +++ b/internal/model/entity/system_oauth_2_refresh_token.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOauth2RefreshToken is the golang structure for table system_oauth2_refresh_token. +type SystemOauth2RefreshToken struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + RefreshToken string `json:"refreshToken" orm:"refresh_token" description:"刷新令牌"` // 刷新令牌 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + Scopes string `json:"scopes" orm:"scopes" description:"授权范围"` // 授权范围 + ExpiresTime *gtime.Time `json:"expiresTime" orm:"expires_time" description:"过期时间"` // 过期时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_operate_log.go b/internal/model/entity/system_operate_log.go new file mode 100644 index 0000000..d5d3037 --- /dev/null +++ b/internal/model/entity/system_operate_log.go @@ -0,0 +1,32 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemOperateLog is the golang structure for table system_operate_log. +type SystemOperateLog struct { + Id int64 `json:"id" orm:"id" description:"日志主键"` // 日志主键 + TraceId string `json:"traceId" orm:"trace_id" description:"链路追踪编号"` // 链路追踪编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + Type string `json:"type" orm:"type" description:"操作模块类型"` // 操作模块类型 + SubType string `json:"subType" orm:"sub_type" description:"操作名"` // 操作名 + BizId int64 `json:"bizId" orm:"biz_id" description:"操作数据模块编号"` // 操作数据模块编号 + Action string `json:"action" orm:"action" description:"操作内容"` // 操作内容 + Extra string `json:"extra" orm:"extra" description:"拓展字段"` // 拓展字段 + RequestMethod string `json:"requestMethod" orm:"request_method" description:"请求方法名"` // 请求方法名 + RequestUrl string `json:"requestUrl" orm:"request_url" description:"请求地址"` // 请求地址 + UserIp string `json:"userIp" orm:"user_ip" description:"用户 IP"` // 用户 IP + UserAgent string `json:"userAgent" orm:"user_agent" description:"浏览器 UA"` // 浏览器 UA + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_post.go b/internal/model/entity/system_post.go new file mode 100644 index 0000000..27dc4b7 --- /dev/null +++ b/internal/model/entity/system_post.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemPost is the golang structure for table system_post. +type SystemPost struct { + Id int64 `json:"id" orm:"id" description:"岗位ID"` // 岗位ID + Code string `json:"code" orm:"code" description:"岗位编码"` // 岗位编码 + Name string `json:"name" orm:"name" description:"岗位名称"` // 岗位名称 + Sort int `json:"sort" orm:"sort" description:"显示顺序"` // 显示顺序 + Status int `json:"status" orm:"status" description:"状态(0正常 1停用)"` // 状态(0正常 1停用) + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_role.go b/internal/model/entity/system_role.go new file mode 100644 index 0000000..91d9928 --- /dev/null +++ b/internal/model/entity/system_role.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemRole is the golang structure for table system_role. +type SystemRole struct { + Id int64 `json:"id" orm:"id" description:"角色ID"` // 角色ID + Name string `json:"name" orm:"name" description:"角色名称"` // 角色名称 + Code string `json:"code" orm:"code" description:"角色权限字符串"` // 角色权限字符串 + Sort int `json:"sort" orm:"sort" description:"显示顺序"` // 显示顺序 + DataScope int `json:"dataScope" orm:"data_scope" description:"数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)"` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) + DataScopeDeptIds string `json:"dataScopeDeptIds" orm:"data_scope_dept_ids" description:"数据范围(指定部门数组)"` // 数据范围(指定部门数组) + Status int `json:"status" orm:"status" description:"角色状态(0正常 1停用)"` // 角色状态(0正常 1停用) + Type int `json:"type" orm:"type" description:"角色类型"` // 角色类型 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_role_menu.go b/internal/model/entity/system_role_menu.go new file mode 100644 index 0000000..69d751c --- /dev/null +++ b/internal/model/entity/system_role_menu.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemRoleMenu is the golang structure for table system_role_menu. +type SystemRoleMenu struct { + Id int64 `json:"id" orm:"id" description:"自增编号"` // 自增编号 + RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"` // 角色ID + MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"` // 菜单ID + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_sms_channel.go b/internal/model/entity/system_sms_channel.go new file mode 100644 index 0000000..3f5bebd --- /dev/null +++ b/internal/model/entity/system_sms_channel.go @@ -0,0 +1,26 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsChannel is the golang structure for table system_sms_channel. +type SystemSmsChannel struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Signature string `json:"signature" orm:"signature" description:"短信签名"` // 短信签名 + Code string `json:"code" orm:"code" description:"渠道编码"` // 渠道编码 + Status int `json:"status" orm:"status" description:"开启状态"` // 开启状态 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + ApiKey string `json:"apiKey" orm:"api_key" description:"短信 API 的账号"` // 短信 API 的账号 + ApiSecret string `json:"apiSecret" orm:"api_secret" description:"短信 API 的秘钥"` // 短信 API 的秘钥 + CallbackUrl string `json:"callbackUrl" orm:"callback_url" description:"短信发送回调 URL"` // 短信发送回调 URL + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_sms_code.go b/internal/model/entity/system_sms_code.go new file mode 100644 index 0000000..0a8fb0f --- /dev/null +++ b/internal/model/entity/system_sms_code.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsCode is the golang structure for table system_sms_code. +type SystemSmsCode struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Mobile string `json:"mobile" orm:"mobile" description:"手机号"` // 手机号 + Code string `json:"code" orm:"code" description:"验证码"` // 验证码 + CreateIp string `json:"createIp" orm:"create_ip" description:"创建 IP"` // 创建 IP + Scene int `json:"scene" orm:"scene" description:"发送场景"` // 发送场景 + TodayIndex int `json:"todayIndex" orm:"today_index" description:"今日发送的第几条"` // 今日发送的第几条 + Used int `json:"used" orm:"used" description:"是否使用"` // 是否使用 + UsedTime *gtime.Time `json:"usedTime" orm:"used_time" description:"使用时间"` // 使用时间 + UsedIp string `json:"usedIp" orm:"used_ip" description:"使用 IP"` // 使用 IP + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_sms_log.go b/internal/model/entity/system_sms_log.go new file mode 100644 index 0000000..c2a2418 --- /dev/null +++ b/internal/model/entity/system_sms_log.go @@ -0,0 +1,40 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsLog is the golang structure for table system_sms_log. +type SystemSmsLog struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + ChannelId int64 `json:"channelId" orm:"channel_id" description:"短信渠道编号"` // 短信渠道编号 + ChannelCode string `json:"channelCode" orm:"channel_code" description:"短信渠道编码"` // 短信渠道编码 + TemplateId int64 `json:"templateId" orm:"template_id" description:"模板编号"` // 模板编号 + TemplateCode string `json:"templateCode" orm:"template_code" description:"模板编码"` // 模板编码 + TemplateType int `json:"templateType" orm:"template_type" description:"短信类型"` // 短信类型 + TemplateContent string `json:"templateContent" orm:"template_content" description:"短信内容"` // 短信内容 + TemplateParams string `json:"templateParams" orm:"template_params" description:"短信参数"` // 短信参数 + ApiTemplateId string `json:"apiTemplateId" orm:"api_template_id" description:"短信 API 的模板编号"` // 短信 API 的模板编号 + Mobile string `json:"mobile" orm:"mobile" description:"手机号"` // 手机号 + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + SendStatus int `json:"sendStatus" orm:"send_status" description:"发送状态"` // 发送状态 + SendTime *gtime.Time `json:"sendTime" orm:"send_time" description:"发送时间"` // 发送时间 + ApiSendCode string `json:"apiSendCode" orm:"api_send_code" description:"短信 API 发送结果的编码"` // 短信 API 发送结果的编码 + ApiSendMsg string `json:"apiSendMsg" orm:"api_send_msg" description:"短信 API 发送失败的提示"` // 短信 API 发送失败的提示 + ApiRequestId string `json:"apiRequestId" orm:"api_request_id" description:"短信 API 发送返回的唯一请求 ID"` // 短信 API 发送返回的唯一请求 ID + ApiSerialNo string `json:"apiSerialNo" orm:"api_serial_no" description:"短信 API 发送返回的序号"` // 短信 API 发送返回的序号 + ReceiveStatus int `json:"receiveStatus" orm:"receive_status" description:"接收状态"` // 接收状态 + ReceiveTime *gtime.Time `json:"receiveTime" orm:"receive_time" description:"接收时间"` // 接收时间 + ApiReceiveCode string `json:"apiReceiveCode" orm:"api_receive_code" description:"API 接收结果的编码"` // API 接收结果的编码 + ApiReceiveMsg string `json:"apiReceiveMsg" orm:"api_receive_msg" description:"API 接收结果的说明"` // API 接收结果的说明 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_sms_template.go b/internal/model/entity/system_sms_template.go new file mode 100644 index 0000000..3766962 --- /dev/null +++ b/internal/model/entity/system_sms_template.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSmsTemplate is the golang structure for table system_sms_template. +type SystemSmsTemplate struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Type int `json:"type" orm:"type" description:"模板类型"` // 模板类型 + Status int `json:"status" orm:"status" description:"开启状态"` // 开启状态 + Code string `json:"code" orm:"code" description:"模板编码"` // 模板编码 + Name string `json:"name" orm:"name" description:"模板名称"` // 模板名称 + Content string `json:"content" orm:"content" description:"模板内容"` // 模板内容 + Params string `json:"params" orm:"params" description:"参数数组"` // 参数数组 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + ApiTemplateId string `json:"apiTemplateId" orm:"api_template_id" description:"短信 API 的模板编号"` // 短信 API 的模板编号 + ChannelId int64 `json:"channelId" orm:"channel_id" description:"短信渠道编号"` // 短信渠道编号 + ChannelCode string `json:"channelCode" orm:"channel_code" description:"短信渠道编码"` // 短信渠道编码 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_social_client.go b/internal/model/entity/system_social_client.go new file mode 100644 index 0000000..4d52964 --- /dev/null +++ b/internal/model/entity/system_social_client.go @@ -0,0 +1,27 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialClient is the golang structure for table system_social_client. +type SystemSocialClient struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"应用名"` // 应用名 + SocialType int `json:"socialType" orm:"social_type" description:"社交平台的类型"` // 社交平台的类型 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + ClientId string `json:"clientId" orm:"client_id" description:"客户端编号"` // 客户端编号 + ClientSecret string `json:"clientSecret" orm:"client_secret" description:"客户端密钥"` // 客户端密钥 + AgentId string `json:"agentId" orm:"agent_id" description:"代理编号"` // 代理编号 + Status int `json:"status" orm:"status" description:"状态"` // 状态 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_social_user.go b/internal/model/entity/system_social_user.go new file mode 100644 index 0000000..30e0af6 --- /dev/null +++ b/internal/model/entity/system_social_user.go @@ -0,0 +1,29 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialUser is the golang structure for table system_social_user. +type SystemSocialUser struct { + Id uint64 `json:"id" orm:"id" description:"主键(自增策略)"` // 主键(自增策略) + Type int `json:"type" orm:"type" description:"社交平台的类型"` // 社交平台的类型 + Openid string `json:"openid" orm:"openid" description:"社交 openid"` // 社交 openid + Token string `json:"token" orm:"token" description:"社交 token"` // 社交 token + RawTokenInfo string `json:"rawTokenInfo" orm:"raw_token_info" description:"原始 Token 数据,一般是 JSON 格式"` // 原始 Token 数据,一般是 JSON 格式 + Nickname string `json:"nickname" orm:"nickname" description:"用户昵称"` // 用户昵称 + Avatar string `json:"avatar" orm:"avatar" description:"用户头像"` // 用户头像 + RawUserInfo string `json:"rawUserInfo" orm:"raw_user_info" description:"原始用户数据,一般是 JSON 格式"` // 原始用户数据,一般是 JSON 格式 + Code string `json:"code" orm:"code" description:"最后一次的认证 code"` // 最后一次的认证 code + State string `json:"state" orm:"state" description:"最后一次的认证 state"` // 最后一次的认证 state + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_social_user_bind.go b/internal/model/entity/system_social_user_bind.go new file mode 100644 index 0000000..894e15b --- /dev/null +++ b/internal/model/entity/system_social_user_bind.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemSocialUserBind is the golang structure for table system_social_user_bind. +type SystemSocialUserBind struct { + Id uint64 `json:"id" orm:"id" description:"主键(自增策略)"` // 主键(自增策略) + UserId int64 `json:"userId" orm:"user_id" description:"用户编号"` // 用户编号 + UserType int `json:"userType" orm:"user_type" description:"用户类型"` // 用户类型 + SocialType int `json:"socialType" orm:"social_type" description:"社交平台的类型"` // 社交平台的类型 + SocialUserId int64 `json:"socialUserId" orm:"social_user_id" description:"社交用户的编号"` // 社交用户的编号 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_tenant.go b/internal/model/entity/system_tenant.go new file mode 100644 index 0000000..7a9e71c --- /dev/null +++ b/internal/model/entity/system_tenant.go @@ -0,0 +1,28 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemTenant is the golang structure for table system_tenant. +type SystemTenant struct { + Id int64 `json:"id" orm:"id" description:"租户编号"` // 租户编号 + Name string `json:"name" orm:"name" description:"租户名"` // 租户名 + ContactUserId int64 `json:"contactUserId" orm:"contact_user_id" description:"联系人的用户编号"` // 联系人的用户编号 + ContactName string `json:"contactName" orm:"contact_name" description:"联系人"` // 联系人 + ContactMobile string `json:"contactMobile" orm:"contact_mobile" description:"联系手机"` // 联系手机 + Status int `json:"status" orm:"status" description:"租户状态(0正常 1停用)"` // 租户状态(0正常 1停用) + Website string `json:"website" orm:"website" description:"绑定域名"` // 绑定域名 + PackageId int64 `json:"packageId" orm:"package_id" description:"租户套餐编号"` // 租户套餐编号 + ExpireTime *gtime.Time `json:"expireTime" orm:"expire_time" description:"过期时间"` // 过期时间 + AccountCount int `json:"accountCount" orm:"account_count" description:"账号数量"` // 账号数量 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_tenant_package.go b/internal/model/entity/system_tenant_package.go new file mode 100644 index 0000000..cbadbf9 --- /dev/null +++ b/internal/model/entity/system_tenant_package.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemTenantPackage is the golang structure for table system_tenant_package. +type SystemTenantPackage struct { + Id int64 `json:"id" orm:"id" description:"套餐编号"` // 套餐编号 + Name string `json:"name" orm:"name" description:"套餐名"` // 套餐名 + Status int `json:"status" orm:"status" description:"租户状态(0正常 1停用)"` // 租户状态(0正常 1停用) + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + MenuIds string `json:"menuIds" orm:"menu_ids" description:"关联的菜单编号"` // 关联的菜单编号 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 +} diff --git a/internal/model/entity/system_user_post.go b/internal/model/entity/system_user_post.go new file mode 100644 index 0000000..d984203 --- /dev/null +++ b/internal/model/entity/system_user_post.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUserPost is the golang structure for table system_user_post. +type SystemUserPost struct { + Id int64 `json:"id" orm:"id" description:"id"` // id + UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID + PostId int64 `json:"postId" orm:"post_id" description:"岗位ID"` // 岗位ID + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_user_role.go b/internal/model/entity/system_user_role.go new file mode 100644 index 0000000..d0cf4a8 --- /dev/null +++ b/internal/model/entity/system_user_role.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUserRole is the golang structure for table system_user_role. +type SystemUserRole struct { + Id int64 `json:"id" orm:"id" description:"自增编号"` // 自增编号 + UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID + RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"` // 角色ID + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/system_users.go b/internal/model/entity/system_users.go new file mode 100644 index 0000000..02da5ad --- /dev/null +++ b/internal/model/entity/system_users.go @@ -0,0 +1,33 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// SystemUsers is the golang structure for table system_users. +type SystemUsers struct { + Id int64 `json:"id" orm:"id" description:"用户ID"` // 用户ID + Username string `json:"username" orm:"username" description:"用户账号"` // 用户账号 + Password string `json:"password" orm:"password" description:"密码"` // 密码 + Nickname string `json:"nickname" orm:"nickname" description:"用户昵称"` // 用户昵称 + Remark string `json:"remark" orm:"remark" description:"备注"` // 备注 + DeptId int64 `json:"deptId" orm:"dept_id" description:"部门ID"` // 部门ID + PostIds string `json:"postIds" orm:"post_ids" description:"岗位编号数组"` // 岗位编号数组 + Email string `json:"email" orm:"email" description:"用户邮箱"` // 用户邮箱 + Mobile string `json:"mobile" orm:"mobile" description:"手机号码"` // 手机号码 + Sex int `json:"sex" orm:"sex" description:"用户性别"` // 用户性别 + Avatar string `json:"avatar" orm:"avatar" description:"头像地址"` // 头像地址 + Status int `json:"status" orm:"status" description:"帐号状态(0正常 1停用)"` // 帐号状态(0正常 1停用) + LoginIp string `json:"loginIp" orm:"login_ip" description:"最后登录IP"` // 最后登录IP + LoginDate *gtime.Time `json:"loginDate" orm:"login_date" description:"最后登录时间"` // 最后登录时间 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/yudao_demo_01_contact.go b/internal/model/entity/yudao_demo_01_contact.go new file mode 100644 index 0000000..f53f51b --- /dev/null +++ b/internal/model/entity/yudao_demo_01_contact.go @@ -0,0 +1,25 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo01Contact is the golang structure for table yudao_demo01_contact. +type YudaoDemo01Contact struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"名字"` // 名字 + Sex int `json:"sex" orm:"sex" description:"性别"` // 性别 + Birthday *gtime.Time `json:"birthday" orm:"birthday" description:"出生年"` // 出生年 + Description string `json:"description" orm:"description" description:"简介"` // 简介 + Avatar string `json:"avatar" orm:"avatar" description:"头像"` // 头像 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/yudao_demo_02_category.go b/internal/model/entity/yudao_demo_02_category.go new file mode 100644 index 0000000..ccfefef --- /dev/null +++ b/internal/model/entity/yudao_demo_02_category.go @@ -0,0 +1,22 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo02Category is the golang structure for table yudao_demo02_category. +type YudaoDemo02Category struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"名字"` // 名字 + ParentId int64 `json:"parentId" orm:"parent_id" description:"父级编号"` // 父级编号 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/yudao_demo_03_course.go b/internal/model/entity/yudao_demo_03_course.go new file mode 100644 index 0000000..ca5adc6 --- /dev/null +++ b/internal/model/entity/yudao_demo_03_course.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Course is the golang structure for table yudao_demo03_course. +type YudaoDemo03Course struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + StudentId int64 `json:"studentId" orm:"student_id" description:"学生编号"` // 学生编号 + Name string `json:"name" orm:"name" description:"名字"` // 名字 + Score int `json:"score" orm:"score" description:"分数"` // 分数 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/yudao_demo_03_grade.go b/internal/model/entity/yudao_demo_03_grade.go new file mode 100644 index 0000000..c12eb29 --- /dev/null +++ b/internal/model/entity/yudao_demo_03_grade.go @@ -0,0 +1,23 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Grade is the golang structure for table yudao_demo03_grade. +type YudaoDemo03Grade struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + StudentId int64 `json:"studentId" orm:"student_id" description:"学生编号"` // 学生编号 + Name string `json:"name" orm:"name" description:"名字"` // 名字 + Teacher string `json:"teacher" orm:"teacher" description:"班主任"` // 班主任 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/model/entity/yudao_demo_03_student.go b/internal/model/entity/yudao_demo_03_student.go new file mode 100644 index 0000000..e04a65b --- /dev/null +++ b/internal/model/entity/yudao_demo_03_student.go @@ -0,0 +1,24 @@ +// ================================================================================= +// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. +// ================================================================================= + +package entity + +import ( + "github.com/gogf/gf/v2/os/gtime" +) + +// YudaoDemo03Student is the golang structure for table yudao_demo03_student. +type YudaoDemo03Student struct { + Id int64 `json:"id" orm:"id" description:"编号"` // 编号 + Name string `json:"name" orm:"name" description:"名字"` // 名字 + Sex int `json:"sex" orm:"sex" description:"性别"` // 性别 + Birthday *gtime.Time `json:"birthday" orm:"birthday" description:"出生日期"` // 出生日期 + Description string `json:"description" orm:"description" description:"简介"` // 简介 + Creator string `json:"creator" orm:"creator" description:"创建者"` // 创建者 + CreateTime *gtime.Time `json:"createTime" orm:"create_time" description:"创建时间"` // 创建时间 + Updater string `json:"updater" orm:"updater" description:"更新者"` // 更新者 + UpdateTime *gtime.Time `json:"updateTime" orm:"update_time" description:"更新时间"` // 更新时间 + Deleted bool `json:"deleted" orm:"deleted" description:"是否删除"` // 是否删除 + TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户编号"` // 租户编号 +} diff --git a/internal/packed/packed.go b/internal/packed/packed.go new file mode 100644 index 0000000..e20ab1e --- /dev/null +++ b/internal/packed/packed.go @@ -0,0 +1 @@ +package packed diff --git a/internal/service/.gitkeep b/internal/service/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/main.go b/main.go new file mode 100644 index 0000000..430c529 --- /dev/null +++ b/main.go @@ -0,0 +1,13 @@ +package main + +import ( + _ "epic/internal/packed" + + "github.com/gogf/gf/v2/os/gctx" + + "epic/internal/cmd" +) + +func main() { + cmd.Main.Run(gctx.GetInitCtx()) +} diff --git a/manifest/deploy/kustomize/base/deployment.yaml b/manifest/deploy/kustomize/base/deployment.yaml new file mode 100644 index 0000000..28f1d69 --- /dev/null +++ b/manifest/deploy/kustomize/base/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: template-single + labels: + app: template-single +spec: + replicas: 1 + selector: + matchLabels: + app: template-single + template: + metadata: + labels: + app: template-single + spec: + containers: + - name : main + image: template-single + imagePullPolicy: Always + diff --git a/manifest/deploy/kustomize/base/kustomization.yaml b/manifest/deploy/kustomize/base/kustomization.yaml new file mode 100644 index 0000000..302d92d --- /dev/null +++ b/manifest/deploy/kustomize/base/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- deployment.yaml +- service.yaml + + + diff --git a/manifest/deploy/kustomize/base/service.yaml b/manifest/deploy/kustomize/base/service.yaml new file mode 100644 index 0000000..608771c --- /dev/null +++ b/manifest/deploy/kustomize/base/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: template-single +spec: + ports: + - port: 80 + protocol: TCP + targetPort: 8000 + selector: + app: template-single + diff --git a/manifest/deploy/kustomize/overlays/develop/configmap.yaml b/manifest/deploy/kustomize/overlays/develop/configmap.yaml new file mode 100644 index 0000000..3b1d0af --- /dev/null +++ b/manifest/deploy/kustomize/overlays/develop/configmap.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: template-single-configmap +data: + config.yaml: | + server: + address: ":8000" + openapiPath: "/api.json" + swaggerPath: "/swagger" + + logger: + level : "all" + stdout: true diff --git a/manifest/deploy/kustomize/overlays/develop/deployment.yaml b/manifest/deploy/kustomize/overlays/develop/deployment.yaml new file mode 100644 index 0000000..04e4851 --- /dev/null +++ b/manifest/deploy/kustomize/overlays/develop/deployment.yaml @@ -0,0 +1,10 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: template-single +spec: + template: + spec: + containers: + - name : main + image: template-single:develop \ No newline at end of file diff --git a/manifest/deploy/kustomize/overlays/develop/kustomization.yaml b/manifest/deploy/kustomize/overlays/develop/kustomization.yaml new file mode 100644 index 0000000..4731c47 --- /dev/null +++ b/manifest/deploy/kustomize/overlays/develop/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../base +- configmap.yaml + +patchesStrategicMerge: +- deployment.yaml + +namespace: default + + + diff --git a/manifest/docker/Dockerfile b/manifest/docker/Dockerfile new file mode 100644 index 0000000..d3abe8f --- /dev/null +++ b/manifest/docker/Dockerfile @@ -0,0 +1,16 @@ +FROM loads/alpine:3.8 + +############################################################################### +# INSTALLATION +############################################################################### + +ENV WORKDIR /app +ADD resource $WORKDIR/ +ADD ./temp/linux_amd64/main $WORKDIR/main +RUN chmod +x $WORKDIR/main + +############################################################################### +# START +############################################################################### +WORKDIR $WORKDIR +CMD ./main diff --git a/manifest/docker/docker.sh b/manifest/docker/docker.sh new file mode 100644 index 0000000..ff393f9 --- /dev/null +++ b/manifest/docker/docker.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# This shell is executed before docker build. + + + + + diff --git a/manifest/i18n/.gitkeep b/manifest/i18n/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/manifest/protobuf/.keep-if-necessary b/manifest/protobuf/.keep-if-necessary new file mode 100644 index 0000000..e69de29 diff --git a/resource/public/html/.gitkeep b/resource/public/html/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resource/public/plugin/.gitkeep b/resource/public/plugin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resource/public/resource/css/.gitkeep b/resource/public/resource/css/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resource/public/resource/image/.gitkeep b/resource/public/resource/image/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resource/public/resource/js/.gitkeep b/resource/public/resource/js/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resource/template/.gitkeep b/resource/template/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/utility/.gitkeep b/utility/.gitkeep new file mode 100644 index 0000000..e69de29