Skip to content

Commit

Permalink
feat: 实现内容过滤功能和敏感词查找功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Lansongxx committed Mar 25, 2024
1 parent 548d569 commit 131b092
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 26 deletions.
13 changes: 11 additions & 2 deletions biz/adaptor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ import (

type StsServerImpl struct {
*config.Config
AuthService service.AuthService
CosService service.CosService
AuthService service.AuthService
CosService service.CosService
FilterService service.FilterService
}

func (s *StsServerImpl) ReplaceContent(ctx context.Context, req *sts.ReplaceContentReq) (res *sts.ReplaceContentResp, err error) {
return s.FilterService.ReplaceContent(ctx, req)
}

func (s *StsServerImpl) FindAllContent(ctx context.Context, req *sts.FindAllContentReq) (res *sts.FindAllContentResp, err error) {
return s.FilterService.FindAllContent(ctx, req)
}

func (s *StsServerImpl) GenCosSts(ctx context.Context, req *sts.GenCosStsReq) (res *sts.GenCosStsResp, err error) {
Expand Down
65 changes: 65 additions & 0 deletions biz/application/service/filter.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package service

import (
"context"
"github.com/CloudStriver/ToolGood"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/config"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/consts"
gensts "github.com/CloudStriver/service-idl-gen-go/kitex_gen/cloudmind/sts"
"github.com/google/wire"
"github.com/samber/lo"
"sync"
)

type IFilterService interface {
ReplaceContent(ctx context.Context, req *gensts.ReplaceContentReq) (resp *gensts.ReplaceContentResp, err error)
FindAllContent(ctx context.Context, req *gensts.FindAllContentReq) (resp *gensts.FindAllContentResp, err error)
}

type FilterService struct {
Config *config.Config
Filter *ToolGood.IllegalWordsSearch
}

func (s *FilterService) ReplaceContent(ctx context.Context, req *gensts.ReplaceContentReq) (resp *gensts.ReplaceContentResp, err error) {
contents := make([]string, len(req.Contents))
wg := sync.WaitGroup{}
wg.Add(len(req.Contents))
for i, content := range req.Contents {
go func(i int, content string) {
defer wg.Done()
contents[i] = s.Filter.Replace(content, consts.ReplaceChar)
}(i, content)
}

wg.Wait()

return &gensts.ReplaceContentResp{
Content: contents,
}, nil
}

func (s *FilterService) FindAllContent(ctx context.Context, req *gensts.FindAllContentReq) (resp *gensts.FindAllContentResp, err error) {
keywords := make([]*gensts.Keywords, len(req.Contents))
wg := sync.WaitGroup{}
wg.Add(len(req.Contents))
for i, content := range req.Contents {
go func(i int, content string) {
defer wg.Done()
keywords[i] = &gensts.Keywords{
Keywords: lo.Map[*ToolGood.IllegalWordsSearchResult, string](s.Filter.FindAll(content), func(item *ToolGood.IllegalWordsSearchResult, index int) string {
return item.Keyword
}),
}
}(i, content)
}
wg.Wait()
return &gensts.FindAllContentResp{
Keywords: keywords,
}, nil
}

var FilterSet = wire.NewSet(
wire.Struct(new(FilterService), "*"),
wire.Bind(new(IFilterService), new(*FilterService)),
)
11 changes: 10 additions & 1 deletion biz/infrastructure/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package config

import (
"fmt"
"os"

"github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/core/service"
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/redis"
"os"
)

type EmailConf struct {
Expand All @@ -32,6 +33,13 @@ type CDNConfig struct {
MaxTTL int
}

type FilterConfig struct {
UseDuplicateWordFilter bool
UseDBCcaseConverter bool
UseSimplifiedChineseConverter bool
UseIgnoreCase bool
}

func (c *CosConfig) CosHost() string {
return fmt.Sprintf("https://%s.cos.%s.myqcloud.com", c.BucketName, c.Region)
}
Expand All @@ -49,6 +57,7 @@ type Config struct {
CosConfig *CosConfig
FileCosConfig *CosConfig
CdnConfig *CDNConfig
FilterConfig *FilterConfig
}

func NewConfig() (*Config, error) {
Expand Down
1 change: 1 addition & 0 deletions biz/infrastructure/consts/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ const (
ID = "_id"
CaptchaKey = "CaptchaKey"
PassCheckEmail = "PassCheckEmail"
ReplaceChar = '*'
)
19 changes: 19 additions & 0 deletions biz/infrastructure/util/filter/filter.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package filter

import (
"github.com/CloudStriver/ToolGood"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/config"
)

func NewFilter(config *config.Config) *ToolGood.IllegalWordsSearch {
filter := ToolGood.NewIllegalWordsSearch()
filter.UseDuplicateWordFilter = config.FilterConfig.UseDuplicateWordFilter
filter.UseIgnoreCase = config.FilterConfig.UseIgnoreCase
filter.UseSimplifiedChineseConverter = config.FilterConfig.UseSimplifiedChineseConverter
filter.UseDBCcaseConverter = config.FilterConfig.UseDBCcaseConverter
filter.LoadFromDB(&ToolGood.MongoConfig{
DataSource: config.Mongo.URL,
DB: config.Mongo.DB,
})
return filter
}
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module github.com/CloudStriver/cloudmind-sts
go 1.20

require (
github.com/CloudStriver/ToolGood v0.0.0-20240325020152-92c577d6e96d
github.com/CloudStriver/go-pkg v0.0.0-20240115102515-f1d7bfa047af
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240201094804-9bf4d9eee7a9
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240325034001-88b54ac0de7b
github.com/cloudwego/kitex v0.8.0
github.com/google/wire v0.5.0
github.com/kitex-contrib/obs-opentelemetry v0.2.5
Expand All @@ -14,7 +15,7 @@ require (
github.com/tencentyun/qcloud-cos-sts-sdk v0.0.0-20231121073521-dd65d8941a16
github.com/xh-polaris/platform-sts v1.4.34
github.com/zeromicro/go-zero v1.6.1
go.mongodb.org/mongo-driver v1.13.1
go.mongodb.org/mongo-driver v1.14.0
go.opentelemetry.io/otel/trace v1.19.0
google.golang.org/grpc v1.60.1
)
Expand Down Expand Up @@ -99,7 +100,7 @@ require (
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.uber.org/automaxprocs v1.5.3 // indirect
golang.org/x/arch v0.2.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sync v0.5.0 // indirect
Expand Down
23 changes: 8 additions & 15 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zum
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/CloudStriver/ToolGood v0.0.0-20240325020152-92c577d6e96d h1:UQZIfnbd683522THzSQId8sVd2cXgGFB8sKsXlH7maw=
github.com/CloudStriver/ToolGood v0.0.0-20240325020152-92c577d6e96d/go.mod h1:ajuYgkvZmBaZx+gQF5rhCG3nS4ARFWN6gPKLV55k0j0=
github.com/CloudStriver/go-pkg v0.0.0-20240115102515-f1d7bfa047af h1:tl3MgdfL4fOkZxFYqqLXYr6dEk5TvT/hGe06uoB+spY=
github.com/CloudStriver/go-pkg v0.0.0-20240115102515-f1d7bfa047af/go.mod h1:RMjN80WnoDiqHZIsv27u9BxJ9axldr+elFRHgSjhXnY=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240124091147-b9f3b0ea9d4b h1:3QmklzpLCqO3B6enVQEo4QVbSaMr2x/Skyw5aR4BgEs=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240124091147-b9f3b0ea9d4b/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240201094804-9bf4d9eee7a9 h1:VvTEyApI2g6u+YAzbS8f7kcAwxnd0cTQDL3hHtTYo0A=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240201094804-9bf4d9eee7a9/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240325034001-88b54ac0de7b h1:6zvFftlk5rgfupBg+Ye4w3dScuA6ymUQJICHxI2q30g=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240325034001-88b54ac0de7b/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI=
github.com/QcloudApi/qcloud_sign_golang v0.0.0-20141224014652-e4130a326409/go.mod h1:1pk82RBxDY/JZnPQrtqHlUFfCctgdorsd9M06fMynOM=
github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY=
github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk=
Expand Down Expand Up @@ -161,15 +161,13 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
Expand Down Expand Up @@ -214,7 +212,6 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kitex-contrib/obs-opentelemetry v0.2.5 h1:vV0rbEQnhv7gFPJJPAas4mvp0vopOUC3RU05pnXDOAw=
github.com/kitex-contrib/obs-opentelemetry v0.2.5/go.mod h1:+Hfa6yIiSOIL364QSiUyWTQARkV1OI/NU527SKw+/kk=
github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
github.com/klauspost/compress v1.16.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I=
github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
Expand Down Expand Up @@ -335,7 +332,6 @@ github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6
github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM=
github.com/xh-polaris/platform-sts v1.4.34 h1:o8wWMf6GSYyiZ4/jKF1r15IkV4v0aYtSKL8QZa0ErZk=
github.com/xh-polaris/platform-sts v1.4.34/go.mod h1:XPLvj4cxGmbYqhncNsnBhYqxlQQdSkm9hr+8h/I3WSM=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a h1:fZHgsYlfvtyqToslyjUt3VOPF4J7aK/3MPcK7xp3PDk=
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/R083muKhosV54bj5niojjWZvU8xrevuH4=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand All @@ -347,8 +343,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t
github.com/yuin/gopher-lua v1.1.0 h1:BojcDhfyDWgU2f2TOzYK/g5p2gxMrku8oupLDqlnSqE=
github.com/zeromicro/go-zero v1.6.1 h1:E8fRkMPiYODk8+jUIrxQQIEG+MTgWfXKiH7sjc9l6Vs=
github.com/zeromicro/go-zero v1.6.1/go.mod h1:slLvzqPP/H/h9ABq9ykNOuX6pYLjA8Uy3Rb8adkXTGw=
go.mongodb.org/mongo-driver v1.13.1 h1:YIc7HTYsKndGK4RFzJ3covLz1byri52x0IoMB0Pt/vk=
go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo=
go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80=
go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c=
go.opentelemetry.io/contrib/propagators/b3 v1.20.0 h1:Yty9Vs4F3D6/liF1o6FNt0PvN85h/BJJ6DQKJ3nrcM0=
go.opentelemetry.io/contrib/propagators/ot v1.20.0 h1:duH7mgL6VGQH7e7QEAVOFkCQXWpCb4PjTtrhdrYrJRQ=
go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs=
Expand Down Expand Up @@ -388,9 +384,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY=
golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
Expand Down Expand Up @@ -439,7 +434,6 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
Expand Down Expand Up @@ -496,7 +490,6 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand Down
3 changes: 3 additions & 0 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/config"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/mapper/user"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/stores/redis"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/util/filter"
"github.com/CloudStriver/cloudmind-sts/biz/infrastructure/util/sdk/cos"
"github.com/google/wire"
)
Expand All @@ -17,12 +18,14 @@ var AllProvider = wire.NewSet(
var ApplicationSet = wire.NewSet(
service.AuthSet,
service.CosSet,
service.FilterSet,
)

var InfrastructureSet = wire.NewSet(
config.NewConfig,
redis.NewRedis,
cos.NewCosSDK,
filter.NewFilter,
MapperSet,
)

Expand Down
17 changes: 12 additions & 5 deletions provider/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 131b092

Please sign in to comment.