Skip to content

Commit

Permalink
refactor: optimize the import of the job service v0.2.9
Browse files Browse the repository at this point in the history
chore: update tool version to v0.2.9
  • Loading branch information
suyuan32 committed Mar 26, 2023
1 parent 33d48f6 commit 482011a
Show file tree
Hide file tree
Showing 43 changed files with 2,414 additions and 2,721 deletions.
2 changes: 1 addition & 1 deletion api/internal/logic/base/init_job_database_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package base
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/task/create_task_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/task/delete_task_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/task/get_task_by_id_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/task/get_task_list_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/task/update_task_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"

"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/tasklog/create_task_log_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/zeromicro/go-zero/core/logx"
)
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/tasklog/delete_task_log_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/zeromicro/go-zero/core/logx"
)
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/tasklog/get_task_log_by_id_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-common/i18n"
"github.com/zeromicro/go-zero/core/logx"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/tasklog/get_task_log_list_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/suyuan32/simple-admin-common/i18n"
"github.com/zeromicro/go-zero/core/logx"
Expand Down
2 changes: 1 addition & 1 deletion api/internal/logic/tasklog/update_task_log_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/suyuan32/simple-admin-core/api/internal/svc"
"github.com/suyuan32/simple-admin-core/api/internal/types"
"github.com/suyuan32/simple-admin-job/job"
"github.com/suyuan32/simple-admin-job/types/job"

"github.com/zeromicro/go-zero/core/logx"
)
Expand Down
13 changes: 7 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ require (
github.com/gofrs/uuid/v5 v5.0.0
github.com/hibiken/asynq v0.24.0
github.com/mojocn/base64Captcha v1.3.5
github.com/suyuan32/simple-admin-common v0.2.8
github.com/suyuan32/simple-admin-job v0.2.8
github.com/suyuan32/simple-admin-common v0.2.9
github.com/suyuan32/simple-admin-job v0.2.9
github.com/zeromicro/go-zero v1.5.0
golang.org/x/oauth2 v0.6.0
google.golang.org/grpc v1.53.0
google.golang.org/grpc v1.54.0
google.golang.org/protobuf v1.30.0
)

replace github.com/zeromicro/go-zero v1.5.0 => github.com/suyuan32/simple-admin-tools v0.2.9-beta
replace github.com/zeromicro/go-zero v1.5.0 => github.com/suyuan32/simple-admin-tools v0.2.9

require (
ariga.io/atlas v0.10.0 // indirect
Expand Down Expand Up @@ -75,7 +75,8 @@ require (
github.com/lib/pq v1.10.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
Expand Down Expand Up @@ -120,7 +121,7 @@ require (
golang.org/x/text v0.8.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
google.golang.org/genproto v0.0.0-20230323212658-478b75c54725 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
25 changes: 13 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,12 @@ github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
Expand Down Expand Up @@ -541,12 +542,12 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/suyuan32/simple-admin-common v0.2.8 h1:xYKAvjXtMwl9bdqnkyY0+25M5LC1J/Wr1oUdvXVIbK0=
github.com/suyuan32/simple-admin-common v0.2.8/go.mod h1:bYSkffiGahGcMDcYBo73tMNT5GHCY3gfHvaEya/CdUw=
github.com/suyuan32/simple-admin-job v0.2.8 h1:8OF4vUtVbIWitelBkpLqAxRGJl86b5LmZyCY8e2xON4=
github.com/suyuan32/simple-admin-job v0.2.8/go.mod h1:hajaYBMNGEZHGkEGbtTBOmN/0Vb9aouo8NfW7ZItz1s=
github.com/suyuan32/simple-admin-tools v0.2.9-beta h1:rB38Wyoj9jyHWw8jMZ+qZsvQ6cKbiRcddgXXf7HOSu0=
github.com/suyuan32/simple-admin-tools v0.2.9-beta/go.mod h1:ArKO9FQt2O5+73ec+f3GiTCZyIURj/EzZmD3PdvTfXQ=
github.com/suyuan32/simple-admin-common v0.2.9 h1:2iw7SNYNkekYsXnlJSM/Nb/7aOuzqeEHNNnLyD1WooI=
github.com/suyuan32/simple-admin-common v0.2.9/go.mod h1:GmY82WdRM137pIkMqAUwzhgSDD7rucK43JXTIlsBYDc=
github.com/suyuan32/simple-admin-job v0.2.9 h1:B/4Rvf5kfrRN9FMKTxUgS3PPH48y0mk+ua0ofGGaywc=
github.com/suyuan32/simple-admin-job v0.2.9/go.mod h1:QTfTDGSQYcyUPknkftplOC2HhaihhsHN61LMk2rjRSw=
github.com/suyuan32/simple-admin-tools v0.2.9 h1:h5kffy9fCxYxgpYs0K1K28fheSKeSSsvxUQtsUsf6mA=
github.com/suyuan32/simple-admin-tools v0.2.9/go.mod h1:ArKO9FQt2O5+73ec+f3GiTCZyIURj/EzZmD3PdvTfXQ=
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
Expand Down Expand Up @@ -933,8 +934,8 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 h1:DdoeryqhaXp1LtT/emMP1BRJPHHKFi5akj/nbx/zNTA=
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s=
google.golang.org/genproto v0.0.0-20230323212658-478b75c54725 h1:VmCWItVXcKboEMCwZaWge+1JLiTCQSngZeINF+wzO+g=
google.golang.org/genproto v0.0.0-20230323212658-478b75c54725/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
Expand All @@ -952,8 +953,8 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
google.golang.org/grpc v1.53.0 h1:LAv2ds7cmFV/XTS3XG1NneeENYrXGmorPxsBbptIjNc=
google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw=
google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag=
google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
Expand Down
Loading

0 comments on commit 482011a

Please sign in to comment.