[feat] 命名优化
This commit is contained in:
parent
217e5d14df
commit
5e9b841292
2
grpc.go
2
grpc.go
@ -5,7 +5,7 @@ import (
|
|||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GRpcServcer interface {
|
type GRpcService interface {
|
||||||
Start() error
|
Start() error
|
||||||
Stop() error
|
Stop() error
|
||||||
Restart() error
|
Restart() error
|
||||||
|
5
job.go
5
job.go
@ -4,13 +4,10 @@ import (
|
|||||||
"github.com/samber/do"
|
"github.com/samber/do"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JobServer interface {
|
type JobService interface {
|
||||||
Start() error
|
Start() error
|
||||||
Stop() error
|
Stop() error
|
||||||
Restart() error
|
Restart() error
|
||||||
}
|
|
||||||
|
|
||||||
type JobService interface {
|
|
||||||
Dispatch(job string, payload any, u User) error
|
Dispatch(job string, payload any, u User) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user