refactor: add unified all service gateway
This commit is contained in:
@@ -71,11 +71,11 @@ go run ./cmd/main
|
||||
运行聚合入口:
|
||||
|
||||
```bash
|
||||
cd cmd
|
||||
go run ./main
|
||||
cd all
|
||||
go run ./cmd/main
|
||||
```
|
||||
|
||||
默认启动全部可聚合组件。通过 `BSM_SERVICES` 选择服务,名称以逗号分隔:
|
||||
`all/etc/all_dev.yaml` 统一配置监听端口、数据库、Redis 以及 `Services.<name>` 服务专属配置。聚合入口在同一端口通过 h2c 同时承载 gRPC、HTTP Gateway 和 Gin 路由。可以使用 `BSM_SERVICES` 临时覆盖启用的服务:
|
||||
|
||||
```bash
|
||||
# Linux/macOS
|
||||
@@ -86,7 +86,7 @@ $env:BSM_SERVICES = "passport,order,wallet"
|
||||
go run ./main
|
||||
```
|
||||
|
||||
可选组件为:`ads`、`cloud`、`cms`、`feedback`、`fts`、`initial`、`logs`、`mgt`、`passport`、`sender`、`address`、`delivery`、`mall`、`market`、`order`、`wallet`。社交服务目前作为独立模块运行,尚未接入聚合入口。
|
||||
可选组件为:`ads`、`cloud`、`cms`、`feedback`、`fts`、`initial`、`logs`、`mgt`、`passport`、`sender`、`address`、`mall`、`market`、`order`、`wallet`。社交服务目前作为独立模块运行,尚未接入聚合入口。
|
||||
|
||||
## 测试
|
||||
|
||||
|
||||
110
all/cmd/main/main.go
Normal file
110
all/cmd/main/main.go
Normal file
@@ -0,0 +1,110 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"bsm/full/all/internal/config"
|
||||
"bsm/full/all/internal/impl"
|
||||
allserver "bsm/full/all/internal/server"
|
||||
ads "bsm/full/module/base/ads/service"
|
||||
cloud "bsm/full/module/base/cloud/service"
|
||||
cms "bsm/full/module/base/cms/service"
|
||||
feedback "bsm/full/module/base/feedback/service"
|
||||
fts "bsm/full/module/base/fts/service"
|
||||
initial "bsm/full/module/base/initial/service"
|
||||
logs "bsm/full/module/base/logs/service"
|
||||
mgt "bsm/full/module/base/mgt/service"
|
||||
passport "bsm/full/module/base/passport/service"
|
||||
sender "bsm/full/module/base/sender/service"
|
||||
address "bsm/full/module/ec/address/service"
|
||||
mall "bsm/full/module/ec/mall/service"
|
||||
market "bsm/full/module/ec/market/service"
|
||||
order "bsm/full/module/ec/order/service"
|
||||
wallet "bsm/full/module/finance/wallet/service"
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/gin-contrib/sessions/cookie"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
func main() {
|
||||
config.New()
|
||||
impl.NewImpl()
|
||||
srv := allserver.New()
|
||||
srv.HTTP.Use(sessions.Sessions("mysession", cookie.NewStore([]byte(config.Spec.SecretKey+"-session"))))
|
||||
|
||||
exposeGRPC := func(name string, expose func(*grpc.Server) error) {
|
||||
if !config.Enabled(name) {
|
||||
return
|
||||
}
|
||||
if err := expose(srv.GRPC); err != nil {
|
||||
panic(fmt.Errorf("expose %s: %w", name, err))
|
||||
}
|
||||
}
|
||||
|
||||
exposeGRPC("ads", func(g *grpc.Server) error {
|
||||
return ads.Expose(ads.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("cloud", func(g *grpc.Server) error {
|
||||
return cloud.Expose(cloud.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("cms", func(g *grpc.Server) error {
|
||||
return cms.Expose(cms.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("feedback", func(g *grpc.Server) error {
|
||||
return feedback.Expose(feedback.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("initial", func(g *grpc.Server) error {
|
||||
return initial.Expose(initial.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("passport", func(g *grpc.Server) error {
|
||||
return passport.Expose(passport.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("sender", func(g *grpc.Server) error {
|
||||
return sender.Expose(sender.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("address", func(g *grpc.Server) error {
|
||||
return address.Expose(address.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("mall", func(g *grpc.Server) error {
|
||||
return mall.Expose(mall.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("market", func(g *grpc.Server) error {
|
||||
return market.Expose(market.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("order", func(g *grpc.Server) error {
|
||||
return order.Expose(order.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
exposeGRPC("wallet", func(g *grpc.Server) error {
|
||||
return wallet.Expose(wallet.ExposeOptions{GRPC: g, Gateway: srv.Gateway})
|
||||
})
|
||||
|
||||
exposeHTTP := func(name string, expose func() error) {
|
||||
if !config.Enabled(name) {
|
||||
return
|
||||
}
|
||||
if err := expose(); err != nil {
|
||||
panic(fmt.Errorf("expose %s: %w", name, err))
|
||||
}
|
||||
}
|
||||
exposeHTTP("fts", func() error { return fts.Expose(srv.HTTP) })
|
||||
exposeHTTP("logs", func() error { return logs.Expose(srv.HTTP) })
|
||||
exposeHTTP("mgt", func() error { return mgt.Expose(srv.HTTP) })
|
||||
|
||||
stop := make(chan os.Signal, 1)
|
||||
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-stop
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
_ = srv.Stop(ctx)
|
||||
}()
|
||||
if err := srv.Start(config.Spec.Addr); err != nil && err != http.ErrServerClosed {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
63
all/etc/all_dev.yaml
Normal file
63
all/etc/all_dev.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
Service: all
|
||||
BindIP: 0.0.0.0
|
||||
Port: 12000
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=127.0.0.1 user=postgres password=CHANGE_ME dbname=bsm_dev port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
Cache: redis://null:CHANGE_ME@127.0.0.1:6379/
|
||||
SecretKey: CHANGE_ME
|
||||
|
||||
# The shared listener serves gRPC over HTTP/2 and HTTP/Gateway routes over
|
||||
# HTTP/1.1 or h2c. Per-service values override the shared settings above.
|
||||
Services:
|
||||
ads:
|
||||
Enable: true
|
||||
cloud:
|
||||
Enable: true
|
||||
cms:
|
||||
Enable: true
|
||||
feedback:
|
||||
Enable: true
|
||||
fts:
|
||||
Enable: true
|
||||
initial:
|
||||
Enable: true
|
||||
logs:
|
||||
Enable: true
|
||||
mgt:
|
||||
Enable: true
|
||||
passport:
|
||||
Enable: true
|
||||
Token:
|
||||
Prefix: /token/
|
||||
Expire: 86400
|
||||
Kyc:
|
||||
Provider: jumio
|
||||
BaseUrl: CHANGE_ME
|
||||
ApiSecret: CHANGE_ME
|
||||
ApiToken: CHANGE_ME
|
||||
ApiArgs: CHANGE_ME
|
||||
WeChatConf:
|
||||
AppID: CHANGE_ME
|
||||
AppSecret: CHANGE_ME
|
||||
sender:
|
||||
Enable: true
|
||||
address:
|
||||
Enable: true
|
||||
mall:
|
||||
Enable: true
|
||||
market:
|
||||
Enable: true
|
||||
order:
|
||||
Enable: true
|
||||
wallet:
|
||||
Enable: true
|
||||
Wallet:
|
||||
Name: default
|
||||
URL: CHANGE_ME
|
||||
AlipyIsOpen: false
|
||||
WalletIsOpen: false
|
||||
WechatpayIsOpen: false
|
||||
@@ -1,4 +1,4 @@
|
||||
module bsm/full/cmd
|
||||
module bsm/full/all
|
||||
|
||||
go 1.26.5
|
||||
|
||||
@@ -18,19 +18,26 @@ require (
|
||||
bsm/full/module/ec/market v0.0.0
|
||||
bsm/full/module/ec/order v0.0.0
|
||||
bsm/full/module/finance/wallet v0.0.0
|
||||
git.apinb.com/bsm-sdk/core v0.2.1
|
||||
github.com/gin-contrib/sessions v1.1.0
|
||||
github.com/gin-gonic/gin v1.12.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0
|
||||
go.etcd.io/etcd/client/v3 v3.7.1
|
||||
golang.org/x/net v0.57.0
|
||||
google.golang.org/grpc v1.83.0
|
||||
gorm.io/gorm v1.31.2
|
||||
)
|
||||
|
||||
require (
|
||||
filippo.io/edwards25519 v1.2.0 // indirect
|
||||
git.apinb.com/bsm-sdk/core v0.2.1 // indirect
|
||||
github.com/KyleBanks/depth v1.2.1 // indirect
|
||||
github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.5 // indirect
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.2.4 // indirect
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.12 // indirect
|
||||
github.com/alibabacloud-go/debug v1.0.1 // indirect
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.8 // indirect
|
||||
github.com/alibabacloud-go/tea v1.5.3 // indirect
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.9 // indirect
|
||||
github.com/aliyun/credentials-go v1.4.12 // indirect
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.7 // indirect
|
||||
github.com/alibabacloud-go/tea v1.3.13 // indirect
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.7 // indirect
|
||||
github.com/aliyun/credentials-go v1.4.7 // indirect
|
||||
github.com/bytedance/gopkg v0.1.4 // indirect
|
||||
github.com/bytedance/sonic v1.15.2 // indirect
|
||||
github.com/bytedance/sonic/loader v0.5.2 // indirect
|
||||
@@ -42,9 +49,7 @@ require (
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.15 // indirect
|
||||
github.com/gin-contrib/cors v1.7.7 // indirect
|
||||
github.com/gin-contrib/sessions v1.1.0 // indirect
|
||||
github.com/gin-contrib/sse v1.1.1 // indirect
|
||||
github.com/gin-gonic/gin v1.12.0 // indirect
|
||||
github.com/go-openapi/jsonpointer v1.0.0 // indirect
|
||||
github.com/go-openapi/jsonreference v1.0.0 // indirect
|
||||
github.com/go-openapi/spec v0.22.9 // indirect
|
||||
@@ -57,7 +62,7 @@ require (
|
||||
github.com/go-openapi/swag/yamlutils v0.28.0 // indirect
|
||||
github.com/go-pay/crypto v0.0.1 // indirect
|
||||
github.com/go-pay/errgroup v0.0.3 // indirect
|
||||
github.com/go-pay/gopay v1.5.122 // indirect
|
||||
github.com/go-pay/gopay v1.5.114 // indirect
|
||||
github.com/go-pay/smap v0.0.2 // indirect
|
||||
github.com/go-pay/util v0.0.4 // indirect
|
||||
github.com/go-pay/xlog v0.0.3 // indirect
|
||||
@@ -74,8 +79,6 @@ require (
|
||||
github.com/gorilla/context v1.1.2 // indirect
|
||||
github.com/gorilla/securecookie v1.1.2 // indirect
|
||||
github.com/gorilla/sessions v1.4.0 // indirect
|
||||
github.com/gorilla/websocket v1.5.3 // indirect
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||
github.com/jackc/pgx/v5 v5.10.0 // indirect
|
||||
@@ -106,8 +109,8 @@ require (
|
||||
github.com/swaggo/files v1.0.1 // indirect
|
||||
github.com/swaggo/gin-swagger v1.6.1 // indirect
|
||||
github.com/swaggo/swag v1.16.6 // indirect
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.154 // indirect
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.3.93 // indirect
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.39 // indirect
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.1.0 // indirect
|
||||
github.com/tinylib/msgp v1.6.4 // indirect
|
||||
github.com/tjfoc/gmsm v1.4.1 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
@@ -115,7 +118,6 @@ require (
|
||||
github.com/zeebo/xxh3 v1.1.0 // indirect
|
||||
go.etcd.io/etcd/api/v3 v3.7.1 // indirect
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.7.1 // indirect
|
||||
go.etcd.io/etcd/client/v3 v3.7.1 // indirect
|
||||
go.mongodb.org/mongo-driver/v2 v2.8.0 // indirect
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
@@ -124,20 +126,17 @@ require (
|
||||
golang.org/x/arch v0.30.0 // indirect
|
||||
golang.org/x/crypto v0.54.0 // indirect
|
||||
golang.org/x/mod v0.38.0 // indirect
|
||||
golang.org/x/net v0.57.0 // indirect
|
||||
golang.org/x/sync v0.22.0 // indirect
|
||||
golang.org/x/sys v0.47.0 // indirect
|
||||
golang.org/x/text v0.40.0 // indirect
|
||||
golang.org/x/tools v0.48.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260807164820-c8921c73eeea // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260807164820-c8921c73eeea // indirect
|
||||
google.golang.org/grpc v1.83.0 // indirect
|
||||
google.golang.org/protobuf v1.36.11 // indirect
|
||||
gopkg.in/ini.v1 v1.67.3 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
gorm.io/driver/mysql v1.6.0 // indirect
|
||||
gorm.io/driver/postgres v1.6.2 // indirect
|
||||
gorm.io/gorm v1.31.2 // indirect
|
||||
)
|
||||
|
||||
replace (
|
||||
@@ -15,9 +15,9 @@ github.com/alibabacloud-go/darabonba-encode-util v0.0.2 h1:1uJGrbsGEVqWcWxrS9MyC
|
||||
github.com/alibabacloud-go/darabonba-encode-util v0.0.2/go.mod h1:JiW9higWHYXm7F4PKuMgEUETNZasrDM6vqVr/Can7H8=
|
||||
github.com/alibabacloud-go/darabonba-map v0.0.2 h1:qvPnGB4+dJbJIxOOfawxzF3hzMnIpjmafa0qOTp6udc=
|
||||
github.com/alibabacloud-go/darabonba-map v0.0.2/go.mod h1:28AJaX8FOE/ym8OUFWga+MtEzBunJwQGceGQlvaPGPc=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.13/go.mod h1:lxFGfobinVsQ49ntjpgWghXmIF0/Sm4+wvBJ1h5RtaE=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.2.4 h1:o6veen0IZ/Fe1JawwhwQMZcbw67CVDY1pQwXcNWPyQo=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.2.4/go.mod h1:eHjVxrT9g8uVYN/nyAwOFQEfkVA154ChiqRc2XnNKYU=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.9/go.mod h1:kgnXaV74AVjM3ZWJu1GhyXGuCtxljJ677oUfz6MyJOE=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.12 h1:e2yCrhtWd6Qcsy4he2OL+jIAU+93Lx9OcLlPRoFLT1w=
|
||||
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.12/go.mod h1:f2wDpbM7hK9SvLIH09zSKVU1TsyemUNOqErMscMMl7c=
|
||||
github.com/alibabacloud-go/darabonba-signature-util v0.0.7 h1:UzCnKvsjPFzApvODDNEYqBHMFt1w98wC7FOo0InLyxg=
|
||||
github.com/alibabacloud-go/darabonba-signature-util v0.0.7/go.mod h1:oUzCYV2fcCH797xKdL6BDH8ADIHlzrtKVjeRtunBNTQ=
|
||||
github.com/alibabacloud-go/darabonba-string v1.0.2 h1:E714wms5ibdzCqGeYJ9JCFywE5nDyvIXIIQbZVFkkqo=
|
||||
@@ -26,8 +26,8 @@ github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68/go.mod h1:6p
|
||||
github.com/alibabacloud-go/debug v1.0.0/go.mod h1:8gfgZCCAC3+SCzjWtY053FrOcd4/qlH6IHTI4QyICOc=
|
||||
github.com/alibabacloud-go/debug v1.0.1 h1:MsW9SmUtbb1Fnt3ieC6NNZi6aEwrXfDksD4QA6GSbPg=
|
||||
github.com/alibabacloud-go/debug v1.0.1/go.mod h1:8gfgZCCAC3+SCzjWtY053FrOcd4/qlH6IHTI4QyICOc=
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.8 h1:aDPyz6C+nenypx24N5qEt09NjpS6mu7Cu1A+wf9UTaY=
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.8/go.mod h1:e/vWJ5gLVnraPROSh+3oMSodf5ukaUlqNgH0IIcnz98=
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.7 h1:xqn/zCWwy5T8kYz9VlmHm9dbLscT5gA4d/BjVgNufio=
|
||||
github.com/alibabacloud-go/dysmsapi-20180501/v2 v2.0.7/go.mod h1:m/ZasERkFizmz30MYL7b3pjtltFFPju1AitpJlJ9rWc=
|
||||
github.com/alibabacloud-go/endpoint-util v1.1.0 h1:r/4D3VSw888XGaeNpP994zDUaxdgTSHBbVfZlzf6b5Q=
|
||||
github.com/alibabacloud-go/endpoint-util v1.1.0/go.mod h1:O5FuCALmCKs2Ff7JFJMudHs0I5EBgecXXxZRyswlEjE=
|
||||
github.com/alibabacloud-go/openapi-util v0.1.0 h1:0z75cIULkDrdEhkLWgi9tnLe+KhAFE/r5Pb3312/eAY=
|
||||
@@ -39,23 +39,22 @@ github.com/alibabacloud-go/tea v1.1.11/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/Ke
|
||||
github.com/alibabacloud-go/tea v1.1.17/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A=
|
||||
github.com/alibabacloud-go/tea v1.1.20/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A=
|
||||
github.com/alibabacloud-go/tea v1.2.2/go.mod h1:CF3vOzEMAG+bR4WOql8gc2G9H3EkH3ZLAQdpmpXMgwk=
|
||||
github.com/alibabacloud-go/tea v1.3.10/go.mod h1:A560v/JTQ1n5zklt2BEpurJzZTI8TUT+Psg2drWlxRg=
|
||||
github.com/alibabacloud-go/tea v1.3.12/go.mod h1:A560v/JTQ1n5zklt2BEpurJzZTI8TUT+Psg2drWlxRg=
|
||||
github.com/alibabacloud-go/tea v1.3.13 h1:WhGy6LIXaMbBM6VBYcsDCz6K/TPsT1Ri2hPmmZffZ94=
|
||||
github.com/alibabacloud-go/tea v1.3.13/go.mod h1:A560v/JTQ1n5zklt2BEpurJzZTI8TUT+Psg2drWlxRg=
|
||||
github.com/alibabacloud-go/tea v1.5.2/go.mod h1:hgSs82CkOiehSQMoiFN79dL6zsGX7pVGvnn9SIEs8/0=
|
||||
github.com/alibabacloud-go/tea v1.5.3 h1:UMJTBcO48w7Zz1nlFe9bmRsHwgB7AjF8DBQzcvHhIp8=
|
||||
github.com/alibabacloud-go/tea v1.5.3/go.mod h1:hgSs82CkOiehSQMoiFN79dL6zsGX7pVGvnn9SIEs8/0=
|
||||
github.com/alibabacloud-go/tea-utils v1.3.1/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE=
|
||||
github.com/alibabacloud-go/tea-utils v1.4.5 h1:h0/6Xd2f3bPE4XHTvkpjwxowIwRCJAJOqY6Eq8f3zfA=
|
||||
github.com/alibabacloud-go/tea-utils v1.4.5/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw=
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.5/go.mod h1:dL6vbUT35E4F4bFTHL845eUloqaerYBYPsdWR2/jhe4=
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.7 h1:WDx5qW3Xa5ZgJ1c8NfqJkF6w+AU5wB8835UdhPr6Ax0=
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.7/go.mod h1:qxn986l+q33J5VkialKMqT/TTs3E+U9MJpd001iWQ9I=
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.9 h1:y6pUIlhjxbZl9ObDAcmA1H3c21eaAxADHTDQmBnAIgA=
|
||||
github.com/alibabacloud-go/tea-utils/v2 v2.0.9/go.mod h1:qxn986l+q33J5VkialKMqT/TTs3E+U9MJpd001iWQ9I=
|
||||
github.com/aliyun/credentials-go v1.1.2/go.mod h1:ozcZaMR5kLM7pwtCMEpVmQ242suV6qTJya2bDq4X1Tw=
|
||||
github.com/aliyun/credentials-go v1.3.1/go.mod h1:8jKYhQuDawt8x2+fusqa1Y6mPxemTsBEN04dgcAcYz0=
|
||||
github.com/aliyun/credentials-go v1.3.6/go.mod h1:1LxUuX7L5YrZUWzBrRyk0SwSdH4OmPrib8NVePL3fxM=
|
||||
github.com/aliyun/credentials-go v1.4.5/go.mod h1:Jm6d+xIgwJVLVWT561vy67ZRP4lPTQxMbEYRuT2Ti1U=
|
||||
github.com/aliyun/credentials-go v1.4.12 h1:7D8eXGotNwthZuUEgAMgBoqxmIHwfaPVwW+/04LIJSQ=
|
||||
github.com/aliyun/credentials-go v1.4.12/go.mod h1:Jm6d+xIgwJVLVWT561vy67ZRP4lPTQxMbEYRuT2Ti1U=
|
||||
github.com/aliyun/credentials-go v1.4.7 h1:T17dLqEtPUFvjDRRb5giVvLh6dFT8IcNFJJb7MeyCxw=
|
||||
github.com/aliyun/credentials-go v1.4.7/go.mod h1:Jm6d+xIgwJVLVWT561vy67ZRP4lPTQxMbEYRuT2Ti1U=
|
||||
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
|
||||
github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
|
||||
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
|
||||
@@ -137,8 +136,8 @@ github.com/go-pay/crypto v0.0.1 h1:B6InT8CLfSLc6nGRVx9VMJRBBazFMjr293+jl0lLXUY=
|
||||
github.com/go-pay/crypto v0.0.1/go.mod h1:41oEIvHMKbNcYlWUlRWtsnC6+ASgh7u29z0gJXe5bes=
|
||||
github.com/go-pay/errgroup v0.0.3 h1:DB4s8e8oWYDyETKQ1y1riMJ7y29zE1uIsMCSjEOFSbU=
|
||||
github.com/go-pay/errgroup v0.0.3/go.mod h1:0+4b8mvFMS71MIzsaC+gVvB4x37I93lRb2dqrwuU8x8=
|
||||
github.com/go-pay/gopay v1.5.122 h1:kuOz2qBQXGF+o4v6IOGfdFB05fquhEa32dVW98gk/bI=
|
||||
github.com/go-pay/gopay v1.5.122/go.mod h1:RzP9+1bPzIMAXGRL5RvYsZjib7wV2fhA3JxT5sjoi2w=
|
||||
github.com/go-pay/gopay v1.5.114 h1:jNYpcylr7WJev6i/MBeer0Z58E0x5NyqG4FfZrar3pQ=
|
||||
github.com/go-pay/gopay v1.5.114/go.mod h1:p48xvWeepPolZuakAjCeucWynWwW7msoXsqahcoJpKE=
|
||||
github.com/go-pay/smap v0.0.2 h1:kKflYor5T5FgZltPFBMTFfjJvqYMHr5VnIFSEyhVTcA=
|
||||
github.com/go-pay/smap v0.0.2/go.mod h1:HW9oAo0okuyDYsbpbj5fJFxnNj/BZorRGFw26SxrNWw=
|
||||
github.com/go-pay/util v0.0.4 h1:TuwSU9o3Qd7m9v1PbzFuIA/8uO9FJnA6P7neG/NwPyk=
|
||||
@@ -196,8 +195,6 @@ github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kX
|
||||
github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo=
|
||||
github.com/gorilla/sessions v1.4.0 h1:kpIYOp/oi6MG/p5PgxApU8srsSw9tuFbt46Lt7auzqQ=
|
||||
github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2emc7lT5ik=
|
||||
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/grpc-ecosystem/grpc-gateway/v2 v2.30.0 h1:/Tnpcb2E0Pz/tN9s3bfEY2Q8ePCEX9iuS+cneUwncnw=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0/go.mod h1:zOBXOsUaBSjKgmH4OGzV1esUpR3oUSCPYVd2cUBjKYY=
|
||||
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
|
||||
@@ -301,11 +298,11 @@ github.com/swaggo/gin-swagger v1.6.1 h1:Ri06G4gc9N4t4k8hekMigJ9zKTFSlqj/9paAQCQs
|
||||
github.com/swaggo/gin-swagger v1.6.1/go.mod h1:LQ+hJStHakCWRiK/YNYtJOu4mR2FP+pxLnILT/qNiTw=
|
||||
github.com/swaggo/swag v1.16.6 h1:qBNcx53ZaX+M5dxVyTrgQ0PJ/ACK+NzhwcbieTt+9yI=
|
||||
github.com/swaggo/swag v1.16.6/go.mod h1:ngP2etMK5a0P3QBizic5MEwpRmluJZPHjXcMoj4Xesg=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.93/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.154 h1:aQFGuNTo9j60M967s/HhnoZdSD8HhGyCRHLuC9szDgw=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.154/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.3.93 h1:+HmyErvypBJGp0sxVM+e9g9/MtqKZoWXzZtndpHRUwo=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.3.93/go.mod h1:TAQeguxskl7xDfyGWDJyUGuy1NfG2lyLEuALJQ6x1zE=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.0/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.39 h1:D7qtbjv0+L8r+Wrenk+SAsAwLVPRUkePROGWUrZY5QE=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.39/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.1.0 h1:vPYUpMS+ZpBosaPvD/qFhy7m3LVEcJkUPxf90QHodwI=
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.1.0/go.mod h1:cVlZISIgfgYzoXidDBwgieSYYf9dtpIqVLLOCV0BqOc=
|
||||
github.com/tinylib/msgp v1.6.4 h1:mOwYbyYDLPj35mkA2BjjYejgJk9BuHxDdvRnb6v2ZcQ=
|
||||
github.com/tinylib/msgp v1.6.4/go.mod h1:RSp0LW9oSxFut3KzESt5Voq4GVWyS+PSulT77roAqEA=
|
||||
github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w=
|
||||
48
all/internal/config/config.go
Normal file
48
all/internal/config/config.go
Normal file
@@ -0,0 +1,48 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"net"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/conf"
|
||||
)
|
||||
|
||||
const ServiceKey = "all"
|
||||
|
||||
type ServiceConfig map[string]any
|
||||
|
||||
type SrvConfig struct {
|
||||
conf.Base `yaml:",inline"`
|
||||
Databases *conf.DBConf `yaml:"Databases"`
|
||||
Etcd *conf.EtcdConf `yaml:"Etcd"`
|
||||
Services map[string]ServiceConfig `yaml:"Services"`
|
||||
}
|
||||
|
||||
var Spec SrvConfig
|
||||
|
||||
func New() {
|
||||
conf.New(ServiceKey, &Spec)
|
||||
Spec.Port = conf.CheckPort(Spec.Port)
|
||||
Spec.BindIP = conf.CheckIP(Spec.BindIP)
|
||||
Spec.Addr = net.JoinHostPort(Spec.BindIP, Spec.Port)
|
||||
conf.NotNil(Spec.Service, Spec.Cache)
|
||||
conf.PrintInfo(Spec.Addr)
|
||||
}
|
||||
|
||||
func Enabled(name string) bool {
|
||||
if raw := strings.TrimSpace(os.Getenv("BSM_SERVICES")); raw != "" {
|
||||
for _, selected := range strings.Split(raw, ",") {
|
||||
if strings.EqualFold(strings.TrimSpace(selected), name) || strings.EqualFold(strings.TrimSpace(selected), "all") {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
service, ok := Spec.Services[name]
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
enabled, ok := service["Enable"].(bool)
|
||||
return !ok || enabled
|
||||
}
|
||||
21
all/internal/impl/impl.go
Normal file
21
all/internal/impl/impl.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package impl
|
||||
|
||||
import (
|
||||
"bsm/full/all/internal/config"
|
||||
"git.apinb.com/bsm-sdk/core/cache/redis"
|
||||
"git.apinb.com/bsm-sdk/core/with"
|
||||
clientv3 "go.etcd.io/etcd/client/v3"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var (
|
||||
RedisService *redis.RedisClient
|
||||
EtcdService *clientv3.Client
|
||||
DBService *gorm.DB
|
||||
)
|
||||
|
||||
func NewImpl() {
|
||||
RedisService = with.RedisCache(config.Spec.Cache)
|
||||
DBService = with.Databases(config.Spec.Databases, nil)
|
||||
EtcdService = with.Etcd(config.Spec.Etcd)
|
||||
}
|
||||
90
all/internal/server/server.go
Normal file
90
all/internal/server/server.go
Normal file
@@ -0,0 +1,90 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"golang.org/x/net/http2"
|
||||
"golang.org/x/net/http2/h2c"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/reflection"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
HTTP *gin.Engine
|
||||
server *http.Server
|
||||
}
|
||||
|
||||
func New() *Server {
|
||||
grpcServer := grpc.NewServer()
|
||||
reflection.Register(grpcServer)
|
||||
engine := gin.New()
|
||||
engine.Use(gin.Logger(), gin.Recovery())
|
||||
return &Server{
|
||||
GRPC: grpcServer,
|
||||
Gateway: gwRuntime.NewServeMux(),
|
||||
HTTP: engine,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Server) Start(addr string) error {
|
||||
handler := h2c.NewHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.ProtoMajor == 2 && strings.HasPrefix(r.Header.Get("Content-Type"), "application/grpc") {
|
||||
s.GRPC.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
recorder := newBufferedResponse()
|
||||
s.Gateway.ServeHTTP(recorder, r)
|
||||
if recorder.status != http.StatusNotFound {
|
||||
recorder.flush(w)
|
||||
return
|
||||
}
|
||||
s.HTTP.ServeHTTP(w, r)
|
||||
}), &http2.Server{})
|
||||
s.server = &http.Server{Addr: addr, Handler: handler}
|
||||
listener, err := net.Listen("tcp", addr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Printf("all services listening on %s (gRPC + HTTP)\n", addr)
|
||||
return s.server.Serve(listener)
|
||||
}
|
||||
|
||||
func (s *Server) Stop(ctx context.Context) error {
|
||||
s.GRPC.GracefulStop()
|
||||
if s.server == nil {
|
||||
return nil
|
||||
}
|
||||
return s.server.Shutdown(ctx)
|
||||
}
|
||||
|
||||
type bufferedResponse struct {
|
||||
header http.Header
|
||||
body bytes.Buffer
|
||||
status int
|
||||
}
|
||||
|
||||
func newBufferedResponse() *bufferedResponse {
|
||||
return &bufferedResponse{header: make(http.Header), status: http.StatusOK}
|
||||
}
|
||||
|
||||
func (r *bufferedResponse) Header() http.Header { return r.header }
|
||||
func (r *bufferedResponse) WriteHeader(status int) { r.status = status }
|
||||
func (r *bufferedResponse) Write(data []byte) (int, error) { return r.body.Write(data) }
|
||||
func (r *bufferedResponse) flush(w http.ResponseWriter) {
|
||||
for key, values := range r.header {
|
||||
for _, value := range values {
|
||||
w.Header().Add(key, value)
|
||||
}
|
||||
}
|
||||
w.WriteHeader(r.status)
|
||||
_, _ = w.Write(r.body.Bytes())
|
||||
}
|
||||
21
all/internal/server/server_test.go
Normal file
21
all/internal/server/server_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func TestHTTPRouterIsAvailable(t *testing.T) {
|
||||
srv := New()
|
||||
srv.HTTP.GET("/healthz", func(c *gin.Context) { c.Status(http.StatusNoContent) })
|
||||
|
||||
request := httptest.NewRequest(http.MethodGet, "/healthz", nil)
|
||||
response := httptest.NewRecorder()
|
||||
srv.HTTP.ServeHTTP(response, request)
|
||||
if response.Code != http.StatusNoContent {
|
||||
t.Fatalf("unexpected status: %d", response.Code)
|
||||
}
|
||||
}
|
||||
116
cmd/main/main.go
116
cmd/main/main.go
@@ -1,116 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"sort"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
ads "bsm/full/module/base/ads/cmd/main"
|
||||
cloud "bsm/full/module/base/cloud/cmd/main"
|
||||
cms "bsm/full/module/base/cms/cmd/main"
|
||||
feedback "bsm/full/module/base/feedback/cmd/main"
|
||||
fts "bsm/full/module/base/fts/cmd/main"
|
||||
initial "bsm/full/module/base/initial/cmd/main"
|
||||
logs "bsm/full/module/base/logs/cmd/main"
|
||||
mgt "bsm/full/module/base/mgt/cmd/main"
|
||||
passport "bsm/full/module/base/passport/cmd/main"
|
||||
sender "bsm/full/module/base/sender/cmd/main"
|
||||
address "bsm/full/module/ec/address/cmd/main"
|
||||
mall "bsm/full/module/ec/mall/cmd/main"
|
||||
market "bsm/full/module/ec/market/cmd/main"
|
||||
order "bsm/full/module/ec/order/cmd/main"
|
||||
wallet "bsm/full/module/finance/wallet/cmd/main"
|
||||
)
|
||||
|
||||
type component struct {
|
||||
name string
|
||||
run func()
|
||||
}
|
||||
|
||||
var components = []component{
|
||||
{"ads", ads.Run},
|
||||
{"cloud", cloud.Run},
|
||||
{"cms", cms.Run},
|
||||
{"feedback", feedback.Run},
|
||||
{"fts", fts.Run},
|
||||
{"initial", initial.Run},
|
||||
{"logs", logs.Run},
|
||||
{"mgt", mgt.Run},
|
||||
{"passport", passport.Run},
|
||||
{"sender", sender.Run},
|
||||
{"address", address.Run},
|
||||
{"mall", mall.Run},
|
||||
{"market", market.Run},
|
||||
{"order", order.Run},
|
||||
{"wallet", wallet.Run},
|
||||
}
|
||||
|
||||
func main() {
|
||||
selected, err := selectComponents(os.Getenv("BSM_SERVICES"))
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
failures := make(chan error, len(selected))
|
||||
for _, item := range selected {
|
||||
item := item
|
||||
go func() {
|
||||
defer func() {
|
||||
if value := recover(); value != nil {
|
||||
failures <- fmt.Errorf("component %s panicked: %v", item.name, value)
|
||||
}
|
||||
}()
|
||||
fmt.Printf("starting component %s\n", item.name)
|
||||
item.run()
|
||||
failures <- fmt.Errorf("component %s stopped unexpectedly", item.name)
|
||||
}()
|
||||
}
|
||||
|
||||
stop := make(chan os.Signal, 1)
|
||||
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)
|
||||
select {
|
||||
case sig := <-stop:
|
||||
fmt.Printf("received %s, stopping monolith\n", sig)
|
||||
case err := <-failures:
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func selectComponents(raw string) ([]component, error) {
|
||||
if strings.TrimSpace(raw) == "" || strings.EqualFold(strings.TrimSpace(raw), "all") {
|
||||
return components, nil
|
||||
}
|
||||
|
||||
wanted := make(map[string]struct{})
|
||||
for _, name := range strings.Split(raw, ",") {
|
||||
name = strings.ToLower(strings.TrimSpace(name))
|
||||
if name != "" {
|
||||
wanted[name] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
selected := make([]component, 0, len(wanted))
|
||||
for _, item := range components {
|
||||
if _, ok := wanted[item.name]; ok {
|
||||
selected = append(selected, item)
|
||||
delete(wanted, item.name)
|
||||
}
|
||||
}
|
||||
if len(wanted) != 0 {
|
||||
unknown := make([]string, 0, len(wanted))
|
||||
for name := range wanted {
|
||||
unknown = append(unknown, name)
|
||||
}
|
||||
sort.Strings(unknown)
|
||||
return nil, fmt.Errorf("unknown BSM_SERVICES: %s", strings.Join(unknown, ", "))
|
||||
}
|
||||
if len(selected) == 0 {
|
||||
return nil, fmt.Errorf("BSM_SERVICES did not select any component")
|
||||
}
|
||||
return selected, nil
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSelectComponents(t *testing.T) {
|
||||
selected, err := selectComponents("order, wallet")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(selected) != 2 || selected[0].name != "order" || selected[1].name != "wallet" {
|
||||
t.Fatalf("unexpected selection: %#v", selected)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSelectComponentsRejectsUnknown(t *testing.T) {
|
||||
if _, err := selectComponents("missing"); err == nil {
|
||||
t.Fatal("expected unknown component error")
|
||||
}
|
||||
}
|
||||
2
go.work
2
go.work
@@ -1,7 +1,7 @@
|
||||
go 1.26.5
|
||||
|
||||
use (
|
||||
./cmd
|
||||
./all
|
||||
./module/base/ads
|
||||
./module/base/cloud
|
||||
./module/base/cms
|
||||
|
||||
@@ -369,6 +369,8 @@ github.com/gordonklaus/ineffassign v0.2.0/go.mod h1:TIpymnagPSexySzs7F9FnO1XFTy8
|
||||
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
|
||||
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
|
||||
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
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/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc=
|
||||
github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM=
|
||||
github.com/gostaticanalysis/comment v1.5.0/go.mod h1:V6eb3gpCv9GNVqb6amXzEUX3jXLVK/AdA+IrAMSqvEc=
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
* @Description: 广告服务主程序入口
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/ads/internal/config"
|
||||
@@ -24,7 +24,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 创建gRPC服务器实例
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
// 创建微服务实例
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
|
||||
@@ -17,17 +17,24 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
// register service to grpc.Server
|
||||
pb.RegisterFetchServer(srv.Grpc, NewFetchServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_base_ads_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"!module/base/ads/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"!module/base/ads/proto/const.proto\x12\x0fbase_ads_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc4\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12A\n" +
|
||||
"\x06params\x18\x03 \x03(\v2).base_ads_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xff\x02\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12E\n" +
|
||||
"\x06params\x18\x03 \x03(\v2-.base_ads_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb8\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.base_ads_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe9\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x126\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2 .base_ads_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd5\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x127\n" +
|
||||
"\adetails\x18! \x03(\v2\x1d.base_ads_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"X\n" +
|
||||
"\x11FeedPostListReply\x121\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1d.base_ads_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe3\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x129\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1f.base_ads_blocks.FeedAttachItemR\aattachs\x120\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1c.base_ads_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Z\n" +
|
||||
"\x12GroupPostListReply\x122\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1e.base_ads_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf6\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12:\n" +
|
||||
"\aattachs\x18\t \x03(\v2 .base_ads_blocks.GroupAttachItemR\aattachs\x121\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1d.base_ads_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_base_ads_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"a\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/base/ads/pb;adsb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x121\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1d.base_ads_blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/base/ads/pb;adsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_ads_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_base_ads_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_ads_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_base_ads_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_ads_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_ads_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: base_ads_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: base_ads_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: base_ads_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: base_ads_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: base_ads_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: base_ads_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: base_ads_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: base_ads_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: base_ads_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: base_ads_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: base_ads_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: base_ads_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: base_ads_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: base_ads_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: base_ads_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: base_ads_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: base_ads_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: base_ads_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: base_ads_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: base_ads_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: base_ads_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: base_ads_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: base_ads_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: base_ads_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: base_ads_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: base_ads_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: base_ads_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: base_ads_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: base_ads_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: base_ads_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: base_ads_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: base_ads_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: base_ads_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: base_ads_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: base_ads_blocks.FetchRelationItemReply
|
||||
nil, // 37: base_ads_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: base_ads_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: base_ads_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_ads_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: base_ads_blocks.FetchRequest.params:type_name -> base_ads_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: base_ads_blocks.MallFetchRequest.params:type_name -> base_ads_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: base_ads_blocks.MarketFetchRequest.params:type_name -> base_ads_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: base_ads_blocks.CmsCategoryItem.child:type_name -> base_ads_blocks.CmsCategoryItem
|
||||
26, // 4: base_ads_blocks.OrderSummaryItem.details:type_name -> base_ads_blocks.OrderDetails
|
||||
28, // 5: base_ads_blocks.FeedPostListReply.list:type_name -> base_ads_blocks.FeedPostItem
|
||||
29, // 6: base_ads_blocks.FeedPostItem.attachs:type_name -> base_ads_blocks.FeedAttachItem
|
||||
30, // 7: base_ads_blocks.FeedPostItem.tags:type_name -> base_ads_blocks.FeedTagItem
|
||||
32, // 8: base_ads_blocks.GroupPostListReply.list:type_name -> base_ads_blocks.GroupPostItem
|
||||
33, // 9: base_ads_blocks.GroupPostItem.attachs:type_name -> base_ads_blocks.GroupAttachItem
|
||||
34, // 10: base_ads_blocks.GroupPostItem.tags:type_name -> base_ads_blocks.GroupTagItem
|
||||
35, // 11: base_ads_blocks.FetchRelationItemReply.data:type_name -> base_ads_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_ads_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/ads/pb;ads";
|
||||
|
||||
|
||||
25
module/base/ads/service/expose.go
Normal file
25
module/base/ads/service/expose.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/ads/internal/server"
|
||||
pb "bsm/full/module/base/ads/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterFetchHandlerServer(ctx, options.Gateway, server.NewFetchServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/cloud/internal/config"
|
||||
@@ -20,7 +20,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化服务
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
&service.Options{
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -33,7 +38,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterShareServer(srv.Grpc, NewShareServer())
|
||||
pb.RegisterSpaceServer(srv.Grpc, NewSpaceServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -650,22 +650,22 @@ const file_module_base_cloud_proto_album_proto_rawDesc = "" +
|
||||
"created_at\x18\x0e \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\x0f \x01(\tR\tupdatedAt\x12+\n" +
|
||||
"\x05album\x18\x10 \x01(\v2\x15.cloud.CloudAlbumItemR\x05album2\xd9\x05\n" +
|
||||
"\x05Album\x12=\n" +
|
||||
"\vCreateAlbum\x12\x19.cloud.CreateAlbumRequest\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\bGetAlbum\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudAlbumItem\x129\n" +
|
||||
"\vUpdateAlbum\x12\x15.cloud.CloudAlbumItem\x1a\x13.blocks.StatusReply\x128\n" +
|
||||
"\vDeleteAlbum\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"\x05album\x18\x10 \x01(\v2\x15.cloud.CloudAlbumItemR\x05album2\xf3\x06\n" +
|
||||
"\x05Album\x12H\n" +
|
||||
"\vCreateAlbum\x12\x19.cloud.CreateAlbumRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
|
||||
"\bGetAlbum\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudAlbumItem\x12D\n" +
|
||||
"\vUpdateAlbum\x12\x15.cloud.CloudAlbumItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
|
||||
"\vDeleteAlbum\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
|
||||
"\n" +
|
||||
"ListAlbums\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListAlbumsResponse\x12A\n" +
|
||||
"\rSetCoverPhoto\x12\x1b.cloud.SetCoverPhotoRequest\x1a\x13.blocks.StatusReply\x129\n" +
|
||||
"\vUploadPhoto\x12\x15.cloud.CloudPhotoItem\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\bGetPhoto\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudPhotoItem\x129\n" +
|
||||
"\vUpdatePhoto\x12\x15.cloud.CloudPhotoItem\x1a\x13.blocks.StatusReply\x128\n" +
|
||||
"\vDeletePhoto\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"ListAlbums\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListAlbumsResponse\x12L\n" +
|
||||
"\rSetCoverPhoto\x12\x1b.cloud.SetCoverPhotoRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
|
||||
"\vUploadPhoto\x12\x15.cloud.CloudPhotoItem\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
|
||||
"\bGetPhoto\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudPhotoItem\x12D\n" +
|
||||
"\vUpdatePhoto\x12\x15.cloud.CloudPhotoItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
|
||||
"\vDeletePhoto\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
|
||||
"\n" +
|
||||
"ListPhotos\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListPhotosResponse\x129\n" +
|
||||
"\tMovePhoto\x12\x17.cloud.MovePhotoRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"ListPhotos\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListPhotosResponse\x12D\n" +
|
||||
"\tMovePhoto\x12\x17.cloud.MovePhotoRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_album_proto_rawDescOnce sync.Once
|
||||
@@ -688,9 +688,9 @@ var file_module_base_cloud_proto_album_proto_goTypes = []any{
|
||||
(*ListPhotosResponse)(nil), // 4: cloud.ListPhotosResponse
|
||||
(*MovePhotoRequest)(nil), // 5: cloud.MovePhotoRequest
|
||||
(*CloudPhotoItem)(nil), // 6: cloud.CloudPhotoItem
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 8: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 9: blocks.StatusReply
|
||||
(*IdentRequest)(nil), // 7: base_cloud_blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 8: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 9: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_album_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListAlbumsResponse.albums:type_name -> cloud.CloudAlbumItem
|
||||
@@ -698,29 +698,29 @@ var file_module_base_cloud_proto_album_proto_depIdxs = []int32{
|
||||
6, // 2: cloud.ListPhotosResponse.photos:type_name -> cloud.CloudPhotoItem
|
||||
3, // 3: cloud.CloudPhotoItem.album:type_name -> cloud.CloudAlbumItem
|
||||
0, // 4: cloud.Album.CreateAlbum:input_type -> cloud.CreateAlbumRequest
|
||||
7, // 5: cloud.Album.GetAlbum:input_type -> blocks.IdentRequest
|
||||
7, // 5: cloud.Album.GetAlbum:input_type -> base_cloud_blocks.IdentRequest
|
||||
3, // 6: cloud.Album.UpdateAlbum:input_type -> cloud.CloudAlbumItem
|
||||
7, // 7: cloud.Album.DeleteAlbum:input_type -> blocks.IdentRequest
|
||||
8, // 8: cloud.Album.ListAlbums:input_type -> blocks.FetchRequest
|
||||
7, // 7: cloud.Album.DeleteAlbum:input_type -> base_cloud_blocks.IdentRequest
|
||||
8, // 8: cloud.Album.ListAlbums:input_type -> base_cloud_blocks.FetchRequest
|
||||
2, // 9: cloud.Album.SetCoverPhoto:input_type -> cloud.SetCoverPhotoRequest
|
||||
6, // 10: cloud.Album.UploadPhoto:input_type -> cloud.CloudPhotoItem
|
||||
7, // 11: cloud.Album.GetPhoto:input_type -> blocks.IdentRequest
|
||||
7, // 11: cloud.Album.GetPhoto:input_type -> base_cloud_blocks.IdentRequest
|
||||
6, // 12: cloud.Album.UpdatePhoto:input_type -> cloud.CloudPhotoItem
|
||||
7, // 13: cloud.Album.DeletePhoto:input_type -> blocks.IdentRequest
|
||||
8, // 14: cloud.Album.ListPhotos:input_type -> blocks.FetchRequest
|
||||
7, // 13: cloud.Album.DeletePhoto:input_type -> base_cloud_blocks.IdentRequest
|
||||
8, // 14: cloud.Album.ListPhotos:input_type -> base_cloud_blocks.FetchRequest
|
||||
5, // 15: cloud.Album.MovePhoto:input_type -> cloud.MovePhotoRequest
|
||||
9, // 16: cloud.Album.CreateAlbum:output_type -> blocks.StatusReply
|
||||
9, // 16: cloud.Album.CreateAlbum:output_type -> base_cloud_blocks.StatusReply
|
||||
3, // 17: cloud.Album.GetAlbum:output_type -> cloud.CloudAlbumItem
|
||||
9, // 18: cloud.Album.UpdateAlbum:output_type -> blocks.StatusReply
|
||||
9, // 19: cloud.Album.DeleteAlbum:output_type -> blocks.StatusReply
|
||||
9, // 18: cloud.Album.UpdateAlbum:output_type -> base_cloud_blocks.StatusReply
|
||||
9, // 19: cloud.Album.DeleteAlbum:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 20: cloud.Album.ListAlbums:output_type -> cloud.ListAlbumsResponse
|
||||
9, // 21: cloud.Album.SetCoverPhoto:output_type -> blocks.StatusReply
|
||||
9, // 22: cloud.Album.UploadPhoto:output_type -> blocks.StatusReply
|
||||
9, // 21: cloud.Album.SetCoverPhoto:output_type -> base_cloud_blocks.StatusReply
|
||||
9, // 22: cloud.Album.UploadPhoto:output_type -> base_cloud_blocks.StatusReply
|
||||
6, // 23: cloud.Album.GetPhoto:output_type -> cloud.CloudPhotoItem
|
||||
9, // 24: cloud.Album.UpdatePhoto:output_type -> blocks.StatusReply
|
||||
9, // 25: cloud.Album.DeletePhoto:output_type -> blocks.StatusReply
|
||||
9, // 24: cloud.Album.UpdatePhoto:output_type -> base_cloud_blocks.StatusReply
|
||||
9, // 25: cloud.Album.DeletePhoto:output_type -> base_cloud_blocks.StatusReply
|
||||
4, // 26: cloud.Album.ListPhotos:output_type -> cloud.ListPhotosResponse
|
||||
9, // 27: cloud.Album.MovePhoto:output_type -> blocks.StatusReply
|
||||
9, // 27: cloud.Album.MovePhoto:output_type -> base_cloud_blocks.StatusReply
|
||||
16, // [16:28] is the sub-list for method output_type
|
||||
4, // [4:16] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
|
||||
@@ -395,14 +395,14 @@ const file_module_base_cloud_proto_bookmark_proto_rawDesc = "" +
|
||||
"created_at\x18\n" +
|
||||
" \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\v \x01(\tR\tupdatedAt2\x92\x03\n" +
|
||||
"\bBookmark\x12C\n" +
|
||||
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x13.blocks.StatusReply\x12:\n" +
|
||||
"\vGetBookmark\x12\x11.blocks.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12?\n" +
|
||||
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x13.blocks.StatusReply\x128\n" +
|
||||
"\x0eDeleteBookmark\x12\x11.blocks.IDRequest\x1a\x13.blocks.StatusReply\x12C\n" +
|
||||
"\rListBookmarks\x12\x14.blocks.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12E\n" +
|
||||
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"updated_at\x18\v \x01(\tR\tupdatedAt2\xdf\x03\n" +
|
||||
"\bBookmark\x12N\n" +
|
||||
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12E\n" +
|
||||
"\vGetBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12J\n" +
|
||||
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
|
||||
"\x0eDeleteBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
|
||||
"\rListBookmarks\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12P\n" +
|
||||
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_bookmark_proto_rawDescOnce sync.Once
|
||||
@@ -422,24 +422,24 @@ var file_module_base_cloud_proto_bookmark_proto_goTypes = []any{
|
||||
(*ListBookmarksResponse)(nil), // 1: cloud.ListBookmarksResponse
|
||||
(*ImportBookmarksRequest)(nil), // 2: cloud.ImportBookmarksRequest
|
||||
(*CloudBookmarkItem)(nil), // 3: cloud.CloudBookmarkItem
|
||||
(*IDRequest)(nil), // 4: blocks.IDRequest
|
||||
(*FetchRequest)(nil), // 5: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: blocks.StatusReply
|
||||
(*IDRequest)(nil), // 4: base_cloud_blocks.IDRequest
|
||||
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_bookmark_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListBookmarksResponse.bookmarks:type_name -> cloud.CloudBookmarkItem
|
||||
0, // 1: cloud.Bookmark.CreateBookmark:input_type -> cloud.CreateBookmarkRequest
|
||||
4, // 2: cloud.Bookmark.GetBookmark:input_type -> blocks.IDRequest
|
||||
4, // 2: cloud.Bookmark.GetBookmark:input_type -> base_cloud_blocks.IDRequest
|
||||
3, // 3: cloud.Bookmark.UpdateBookmark:input_type -> cloud.CloudBookmarkItem
|
||||
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> blocks.IDRequest
|
||||
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> blocks.FetchRequest
|
||||
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> base_cloud_blocks.IDRequest
|
||||
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> base_cloud_blocks.FetchRequest
|
||||
2, // 6: cloud.Bookmark.ImportBookmarks:input_type -> cloud.ImportBookmarksRequest
|
||||
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> blocks.StatusReply
|
||||
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> base_cloud_blocks.StatusReply
|
||||
3, // 8: cloud.Bookmark.GetBookmark:output_type -> cloud.CloudBookmarkItem
|
||||
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> blocks.StatusReply
|
||||
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> blocks.StatusReply
|
||||
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> base_cloud_blocks.StatusReply
|
||||
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 11: cloud.Bookmark.ListBookmarks:output_type -> cloud.ListBookmarksResponse
|
||||
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> blocks.StatusReply
|
||||
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> base_cloud_blocks.StatusReply
|
||||
7, // [7:13] is the sub-list for method output_type
|
||||
1, // [1:7] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_base_cloud_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"#module/base/cloud/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"#module/base/cloud/proto/const.proto\x12\x11base_cloud_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc6\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12C\n" +
|
||||
"\x06params\x18\x03 \x03(\v2+.base_cloud_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x81\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.base_cloud_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xba\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12I\n" +
|
||||
"\x06params\x18\x03 \x03(\v21.base_cloud_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xeb\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x128\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2\".base_cloud_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd7\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x129\n" +
|
||||
"\adetails\x18! \x03(\v2\x1f.base_cloud_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"Z\n" +
|
||||
"\x11FeedPostListReply\x123\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1f.base_cloud_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe7\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12;\n" +
|
||||
"\aattachs\x18\t \x03(\v2!.base_cloud_blocks.FeedAttachItemR\aattachs\x122\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1e.base_cloud_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"\\\n" +
|
||||
"\x12GroupPostListReply\x124\n" +
|
||||
"\x04list\x18\x01 \x03(\v2 .base_cloud_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfa\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12<\n" +
|
||||
"\aattachs\x18\t \x03(\v2\".base_cloud_blocks.GroupAttachItemR\aattachs\x123\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1f.base_cloud_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"c\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x123\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1f.base_cloud_blocks.RelationItemR\x04dataB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_base_cloud_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_cloud_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_base_cloud_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_cloud_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_cloud_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: base_cloud_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: base_cloud_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: base_cloud_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: base_cloud_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: base_cloud_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: base_cloud_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: base_cloud_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: base_cloud_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: base_cloud_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: base_cloud_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: base_cloud_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: base_cloud_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: base_cloud_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: base_cloud_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: base_cloud_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: base_cloud_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: base_cloud_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: base_cloud_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: base_cloud_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: base_cloud_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: base_cloud_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: base_cloud_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: base_cloud_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: base_cloud_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: base_cloud_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: base_cloud_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: base_cloud_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: base_cloud_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: base_cloud_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: base_cloud_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: base_cloud_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: base_cloud_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: base_cloud_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: base_cloud_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: base_cloud_blocks.FetchRelationItemReply
|
||||
nil, // 37: base_cloud_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: base_cloud_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: base_cloud_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_cloud_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: base_cloud_blocks.FetchRequest.params:type_name -> base_cloud_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: base_cloud_blocks.MallFetchRequest.params:type_name -> base_cloud_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: base_cloud_blocks.MarketFetchRequest.params:type_name -> base_cloud_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: base_cloud_blocks.CmsCategoryItem.child:type_name -> base_cloud_blocks.CmsCategoryItem
|
||||
26, // 4: base_cloud_blocks.OrderSummaryItem.details:type_name -> base_cloud_blocks.OrderDetails
|
||||
28, // 5: base_cloud_blocks.FeedPostListReply.list:type_name -> base_cloud_blocks.FeedPostItem
|
||||
29, // 6: base_cloud_blocks.FeedPostItem.attachs:type_name -> base_cloud_blocks.FeedAttachItem
|
||||
30, // 7: base_cloud_blocks.FeedPostItem.tags:type_name -> base_cloud_blocks.FeedTagItem
|
||||
32, // 8: base_cloud_blocks.GroupPostListReply.list:type_name -> base_cloud_blocks.GroupPostItem
|
||||
33, // 9: base_cloud_blocks.GroupPostItem.attachs:type_name -> base_cloud_blocks.GroupAttachItem
|
||||
34, // 10: base_cloud_blocks.GroupPostItem.tags:type_name -> base_cloud_blocks.GroupTagItem
|
||||
35, // 11: base_cloud_blocks.FetchRelationItemReply.data:type_name -> base_cloud_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -792,27 +792,27 @@ const file_module_base_cloud_proto_disk_proto_rawDesc = "" +
|
||||
" \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\v \x01(\tR\tupdatedAt\x125\n" +
|
||||
"\tdirectory\x18\f \x01(\v2\x17.cloud.CloudDiskDirItemR\tdirectory2\xfb\x06\n" +
|
||||
"\x04Disk\x129\n" +
|
||||
"\tCreateDir\x12\x17.cloud.CreateDirRequest\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\x06GetDir\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x129\n" +
|
||||
"\tUpdateDir\x12\x17.cloud.CloudDiskDirItem\x1a\x13.blocks.StatusReply\x126\n" +
|
||||
"\tDeleteDir\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x129\n" +
|
||||
"\bListDirs\x12\x14.blocks.FetchRequest\x1a\x17.cloud.ListDirsResponse\x12;\n" +
|
||||
"\tdirectory\x18\f \x01(\v2\x17.cloud.CloudDiskDirItemR\tdirectory2\xb6\b\n" +
|
||||
"\x04Disk\x12D\n" +
|
||||
"\tCreateDir\x12\x17.cloud.CreateDirRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
|
||||
"\x06GetDir\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x12D\n" +
|
||||
"\tUpdateDir\x12\x17.cloud.CloudDiskDirItem\x1a\x1e.base_cloud_blocks.StatusReply\x12L\n" +
|
||||
"\tDeleteDir\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
|
||||
"\bListDirs\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x17.cloud.ListDirsResponse\x12F\n" +
|
||||
"\n" +
|
||||
"GetDirTree\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x125\n" +
|
||||
"\aMoveDir\x12\x15.cloud.MoveDirRequest\x1a\x13.blocks.StatusReply\x12>\n" +
|
||||
"GetDirTree\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x12@\n" +
|
||||
"\aMoveDir\x12\x15.cloud.MoveDirRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12I\n" +
|
||||
"\n" +
|
||||
"UploadFile\x12\x1b.cloud.CloudDiskFileRequest\x1a\x13.blocks.StatusReply\x129\n" +
|
||||
"\aGetFile\x12\x14.blocks.IdentRequest\x1a\x18.cloud.CloudDiskFileItem\x12;\n" +
|
||||
"UploadFile\x12\x1b.cloud.CloudDiskFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
|
||||
"\aGetFile\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x18.cloud.CloudDiskFileItem\x12F\n" +
|
||||
"\n" +
|
||||
"UpdateFile\x12\x18.cloud.CloudDiskFileItem\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"UpdateFile\x12\x18.cloud.CloudDiskFileItem\x1a\x1e.base_cloud_blocks.StatusReply\x12M\n" +
|
||||
"\n" +
|
||||
"DeleteFile\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12;\n" +
|
||||
"\tListFiles\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListFilesResponse\x127\n" +
|
||||
"\bMoveFile\x12\x16.cloud.MoveFileRequest\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\bCopyFile\x12\x16.cloud.CopyFileRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"\vSearchFiles\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListFilesResponseB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"DeleteFile\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12F\n" +
|
||||
"\tListFiles\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListFilesResponse\x12B\n" +
|
||||
"\bMoveFile\x12\x16.cloud.MoveFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
|
||||
"\bCopyFile\x12\x16.cloud.CopyFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
|
||||
"\vSearchFiles\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListFilesResponseB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_disk_proto_rawDescOnce sync.Once
|
||||
@@ -837,9 +837,9 @@ var file_module_base_cloud_proto_disk_proto_goTypes = []any{
|
||||
(*CopyFileRequest)(nil), // 6: cloud.CopyFileRequest
|
||||
(*CloudDiskFileRequest)(nil), // 7: cloud.CloudDiskFileRequest
|
||||
(*CloudDiskFileItem)(nil), // 8: cloud.CloudDiskFileItem
|
||||
(*IdentRequest)(nil), // 9: blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 10: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 11: blocks.StatusReply
|
||||
(*IdentRequest)(nil), // 9: base_cloud_blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 10: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 11: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_disk_proto_depIdxs = []int32{
|
||||
2, // 0: cloud.ListDirsResponse.dirs:type_name -> cloud.CloudDiskDirItem
|
||||
@@ -849,34 +849,34 @@ var file_module_base_cloud_proto_disk_proto_depIdxs = []int32{
|
||||
8, // 4: cloud.ListFilesResponse.files:type_name -> cloud.CloudDiskFileItem
|
||||
2, // 5: cloud.CloudDiskFileItem.directory:type_name -> cloud.CloudDiskDirItem
|
||||
0, // 6: cloud.Disk.CreateDir:input_type -> cloud.CreateDirRequest
|
||||
9, // 7: cloud.Disk.GetDir:input_type -> blocks.IdentRequest
|
||||
9, // 7: cloud.Disk.GetDir:input_type -> base_cloud_blocks.IdentRequest
|
||||
2, // 8: cloud.Disk.UpdateDir:input_type -> cloud.CloudDiskDirItem
|
||||
9, // 9: cloud.Disk.DeleteDir:input_type -> blocks.IdentRequest
|
||||
10, // 10: cloud.Disk.ListDirs:input_type -> blocks.FetchRequest
|
||||
9, // 11: cloud.Disk.GetDirTree:input_type -> blocks.IdentRequest
|
||||
9, // 9: cloud.Disk.DeleteDir:input_type -> base_cloud_blocks.IdentRequest
|
||||
10, // 10: cloud.Disk.ListDirs:input_type -> base_cloud_blocks.FetchRequest
|
||||
9, // 11: cloud.Disk.GetDirTree:input_type -> base_cloud_blocks.IdentRequest
|
||||
3, // 12: cloud.Disk.MoveDir:input_type -> cloud.MoveDirRequest
|
||||
7, // 13: cloud.Disk.UploadFile:input_type -> cloud.CloudDiskFileRequest
|
||||
9, // 14: cloud.Disk.GetFile:input_type -> blocks.IdentRequest
|
||||
9, // 14: cloud.Disk.GetFile:input_type -> base_cloud_blocks.IdentRequest
|
||||
8, // 15: cloud.Disk.UpdateFile:input_type -> cloud.CloudDiskFileItem
|
||||
9, // 16: cloud.Disk.DeleteFile:input_type -> blocks.IdentRequest
|
||||
10, // 17: cloud.Disk.ListFiles:input_type -> blocks.FetchRequest
|
||||
9, // 16: cloud.Disk.DeleteFile:input_type -> base_cloud_blocks.IdentRequest
|
||||
10, // 17: cloud.Disk.ListFiles:input_type -> base_cloud_blocks.FetchRequest
|
||||
5, // 18: cloud.Disk.MoveFile:input_type -> cloud.MoveFileRequest
|
||||
6, // 19: cloud.Disk.CopyFile:input_type -> cloud.CopyFileRequest
|
||||
10, // 20: cloud.Disk.SearchFiles:input_type -> blocks.FetchRequest
|
||||
11, // 21: cloud.Disk.CreateDir:output_type -> blocks.StatusReply
|
||||
10, // 20: cloud.Disk.SearchFiles:input_type -> base_cloud_blocks.FetchRequest
|
||||
11, // 21: cloud.Disk.CreateDir:output_type -> base_cloud_blocks.StatusReply
|
||||
2, // 22: cloud.Disk.GetDir:output_type -> cloud.CloudDiskDirItem
|
||||
11, // 23: cloud.Disk.UpdateDir:output_type -> blocks.StatusReply
|
||||
11, // 24: cloud.Disk.DeleteDir:output_type -> blocks.StatusReply
|
||||
11, // 23: cloud.Disk.UpdateDir:output_type -> base_cloud_blocks.StatusReply
|
||||
11, // 24: cloud.Disk.DeleteDir:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 25: cloud.Disk.ListDirs:output_type -> cloud.ListDirsResponse
|
||||
2, // 26: cloud.Disk.GetDirTree:output_type -> cloud.CloudDiskDirItem
|
||||
11, // 27: cloud.Disk.MoveDir:output_type -> blocks.StatusReply
|
||||
11, // 28: cloud.Disk.UploadFile:output_type -> blocks.StatusReply
|
||||
11, // 27: cloud.Disk.MoveDir:output_type -> base_cloud_blocks.StatusReply
|
||||
11, // 28: cloud.Disk.UploadFile:output_type -> base_cloud_blocks.StatusReply
|
||||
8, // 29: cloud.Disk.GetFile:output_type -> cloud.CloudDiskFileItem
|
||||
11, // 30: cloud.Disk.UpdateFile:output_type -> blocks.StatusReply
|
||||
11, // 31: cloud.Disk.DeleteFile:output_type -> blocks.StatusReply
|
||||
11, // 30: cloud.Disk.UpdateFile:output_type -> base_cloud_blocks.StatusReply
|
||||
11, // 31: cloud.Disk.DeleteFile:output_type -> base_cloud_blocks.StatusReply
|
||||
4, // 32: cloud.Disk.ListFiles:output_type -> cloud.ListFilesResponse
|
||||
11, // 33: cloud.Disk.MoveFile:output_type -> blocks.StatusReply
|
||||
11, // 34: cloud.Disk.CopyFile:output_type -> blocks.StatusReply
|
||||
11, // 33: cloud.Disk.MoveFile:output_type -> base_cloud_blocks.StatusReply
|
||||
11, // 34: cloud.Disk.CopyFile:output_type -> base_cloud_blocks.StatusReply
|
||||
4, // 35: cloud.Disk.SearchFiles:output_type -> cloud.ListFilesResponse
|
||||
21, // [21:36] is the sub-list for method output_type
|
||||
6, // [6:21] is the sub-list for method input_type
|
||||
|
||||
@@ -519,21 +519,21 @@ const file_module_base_cloud_proto_note_proto_rawDesc = "" +
|
||||
"\tfile_size\x18\x05 \x01(\x03R\bfileSize\x12\x1b\n" +
|
||||
"\tmime_type\x18\x06 \x01(\tR\bmimeType\x12\x1d\n" +
|
||||
"\n" +
|
||||
"created_at\x18\a \x01(\tR\tcreatedAt2\xe3\x04\n" +
|
||||
"\x04Note\x12;\n" +
|
||||
"created_at\x18\a \x01(\tR\tcreatedAt2\xf2\x05\n" +
|
||||
"\x04Note\x12F\n" +
|
||||
"\n" +
|
||||
"CreateNote\x12\x18.cloud.CreateNoteRequest\x1a\x13.blocks.StatusReply\x125\n" +
|
||||
"\aGetNote\x12\x14.blocks.IdentRequest\x1a\x14.cloud.CloudNoteItem\x127\n" +
|
||||
"CreateNote\x12\x18.cloud.CreateNoteRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12@\n" +
|
||||
"\aGetNote\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x14.cloud.CloudNoteItem\x12B\n" +
|
||||
"\n" +
|
||||
"UpdateNote\x12\x14.cloud.CloudNoteItem\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"UpdateNote\x12\x14.cloud.CloudNoteItem\x1a\x1e.base_cloud_blocks.StatusReply\x12M\n" +
|
||||
"\n" +
|
||||
"DeleteNote\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12;\n" +
|
||||
"\tListNotes\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x129\n" +
|
||||
"\tTogglePin\x12\x17.cloud.TogglePinRequest\x1a\x13.blocks.StatusReply\x12;\n" +
|
||||
"\x0eIncrementViews\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"\vSearchNotes\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12B\n" +
|
||||
"\x10InsertAttachment\x12\x19.cloud.NoteAttachmentItem\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"\x10DeleteAttachment\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"DeleteNote\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12F\n" +
|
||||
"\tListNotes\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12D\n" +
|
||||
"\tTogglePin\x12\x17.cloud.TogglePinRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12Q\n" +
|
||||
"\x0eIncrementViews\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
|
||||
"\vSearchNotes\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12M\n" +
|
||||
"\x10InsertAttachment\x12\x19.cloud.NoteAttachmentItem\x1a\x1e.base_cloud_blocks.StatusReply\x12S\n" +
|
||||
"\x10DeleteAttachment\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_note_proto_rawDescOnce sync.Once
|
||||
@@ -554,33 +554,33 @@ var file_module_base_cloud_proto_note_proto_goTypes = []any{
|
||||
(*TogglePinRequest)(nil), // 2: cloud.TogglePinRequest
|
||||
(*CloudNoteItem)(nil), // 3: cloud.CloudNoteItem
|
||||
(*NoteAttachmentItem)(nil), // 4: cloud.NoteAttachmentItem
|
||||
(*IdentRequest)(nil), // 5: blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 6: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 7: blocks.StatusReply
|
||||
(*IdentRequest)(nil), // 5: base_cloud_blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 6: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 7: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_note_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListNotesResponse.notes:type_name -> cloud.CloudNoteItem
|
||||
4, // 1: cloud.CloudNoteItem.attachments:type_name -> cloud.NoteAttachmentItem
|
||||
0, // 2: cloud.Note.CreateNote:input_type -> cloud.CreateNoteRequest
|
||||
5, // 3: cloud.Note.GetNote:input_type -> blocks.IdentRequest
|
||||
5, // 3: cloud.Note.GetNote:input_type -> base_cloud_blocks.IdentRequest
|
||||
3, // 4: cloud.Note.UpdateNote:input_type -> cloud.CloudNoteItem
|
||||
5, // 5: cloud.Note.DeleteNote:input_type -> blocks.IdentRequest
|
||||
6, // 6: cloud.Note.ListNotes:input_type -> blocks.FetchRequest
|
||||
5, // 5: cloud.Note.DeleteNote:input_type -> base_cloud_blocks.IdentRequest
|
||||
6, // 6: cloud.Note.ListNotes:input_type -> base_cloud_blocks.FetchRequest
|
||||
2, // 7: cloud.Note.TogglePin:input_type -> cloud.TogglePinRequest
|
||||
5, // 8: cloud.Note.IncrementViews:input_type -> blocks.IdentRequest
|
||||
6, // 9: cloud.Note.SearchNotes:input_type -> blocks.FetchRequest
|
||||
5, // 8: cloud.Note.IncrementViews:input_type -> base_cloud_blocks.IdentRequest
|
||||
6, // 9: cloud.Note.SearchNotes:input_type -> base_cloud_blocks.FetchRequest
|
||||
4, // 10: cloud.Note.InsertAttachment:input_type -> cloud.NoteAttachmentItem
|
||||
5, // 11: cloud.Note.DeleteAttachment:input_type -> blocks.IdentRequest
|
||||
7, // 12: cloud.Note.CreateNote:output_type -> blocks.StatusReply
|
||||
5, // 11: cloud.Note.DeleteAttachment:input_type -> base_cloud_blocks.IdentRequest
|
||||
7, // 12: cloud.Note.CreateNote:output_type -> base_cloud_blocks.StatusReply
|
||||
3, // 13: cloud.Note.GetNote:output_type -> cloud.CloudNoteItem
|
||||
7, // 14: cloud.Note.UpdateNote:output_type -> blocks.StatusReply
|
||||
7, // 15: cloud.Note.DeleteNote:output_type -> blocks.StatusReply
|
||||
7, // 14: cloud.Note.UpdateNote:output_type -> base_cloud_blocks.StatusReply
|
||||
7, // 15: cloud.Note.DeleteNote:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 16: cloud.Note.ListNotes:output_type -> cloud.ListNotesResponse
|
||||
7, // 17: cloud.Note.TogglePin:output_type -> blocks.StatusReply
|
||||
7, // 18: cloud.Note.IncrementViews:output_type -> blocks.StatusReply
|
||||
7, // 17: cloud.Note.TogglePin:output_type -> base_cloud_blocks.StatusReply
|
||||
7, // 18: cloud.Note.IncrementViews:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 19: cloud.Note.SearchNotes:output_type -> cloud.ListNotesResponse
|
||||
7, // 20: cloud.Note.InsertAttachment:output_type -> blocks.StatusReply
|
||||
7, // 21: cloud.Note.DeleteAttachment:output_type -> blocks.StatusReply
|
||||
7, // 20: cloud.Note.InsertAttachment:output_type -> base_cloud_blocks.StatusReply
|
||||
7, // 21: cloud.Note.DeleteAttachment:output_type -> base_cloud_blocks.StatusReply
|
||||
12, // [12:22] is the sub-list for method output_type
|
||||
2, // [2:12] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
|
||||
@@ -376,17 +376,17 @@ const file_module_base_cloud_proto_private_proto_rawDesc = "" +
|
||||
"created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\n" +
|
||||
" \x01(\tR\tupdatedAt2\xea\x04\n" +
|
||||
"\aPrivate\x12I\n" +
|
||||
"\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x13.blocks.StatusReply\x12?\n" +
|
||||
"\x0eGetPrivateData\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12A\n" +
|
||||
"\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x13.blocks.StatusReply\x12>\n" +
|
||||
"\x11DeletePrivateData\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12G\n" +
|
||||
"\x0fListPrivateData\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12L\n" +
|
||||
"\x14GetPrivateDataByType\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12I\n" +
|
||||
"\x11SearchPrivateData\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x126\n" +
|
||||
"\vEncryptData\x12\x12.cloud.DataRequest\x1a\x13.blocks.StatusReply\x126\n" +
|
||||
"\vDecryptData\x12\x12.cloud.DataRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
" \x01(\tR\tupdatedAt2\xd8\x05\n" +
|
||||
"\aPrivate\x12T\n" +
|
||||
"\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12J\n" +
|
||||
"\x0eGetPrivateData\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12L\n" +
|
||||
"\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x1e.base_cloud_blocks.StatusReply\x12T\n" +
|
||||
"\x11DeletePrivateData\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12R\n" +
|
||||
"\x0fListPrivateData\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12W\n" +
|
||||
"\x14GetPrivateDataByType\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12T\n" +
|
||||
"\x11SearchPrivateData\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12A\n" +
|
||||
"\vEncryptData\x12\x12.cloud.DataRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12A\n" +
|
||||
"\vDecryptData\x12\x12.cloud.DataRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_private_proto_rawDescOnce sync.Once
|
||||
@@ -406,30 +406,30 @@ var file_module_base_cloud_proto_private_proto_goTypes = []any{
|
||||
(*ListPrivateDataResponse)(nil), // 1: cloud.ListPrivateDataResponse
|
||||
(*DataRequest)(nil), // 2: cloud.DataRequest
|
||||
(*CloudPrivateItem)(nil), // 3: cloud.CloudPrivateItem
|
||||
(*IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: blocks.StatusReply
|
||||
(*IdentRequest)(nil), // 4: base_cloud_blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_private_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListPrivateDataResponse.data:type_name -> cloud.CloudPrivateItem
|
||||
0, // 1: cloud.Private.CreatePrivateData:input_type -> cloud.CreatePrivateDataRequest
|
||||
4, // 2: cloud.Private.GetPrivateData:input_type -> blocks.IdentRequest
|
||||
4, // 2: cloud.Private.GetPrivateData:input_type -> base_cloud_blocks.IdentRequest
|
||||
3, // 3: cloud.Private.UpdatePrivateData:input_type -> cloud.CloudPrivateItem
|
||||
4, // 4: cloud.Private.DeletePrivateData:input_type -> blocks.IdentRequest
|
||||
5, // 5: cloud.Private.ListPrivateData:input_type -> blocks.FetchRequest
|
||||
5, // 6: cloud.Private.GetPrivateDataByType:input_type -> blocks.FetchRequest
|
||||
5, // 7: cloud.Private.SearchPrivateData:input_type -> blocks.FetchRequest
|
||||
4, // 4: cloud.Private.DeletePrivateData:input_type -> base_cloud_blocks.IdentRequest
|
||||
5, // 5: cloud.Private.ListPrivateData:input_type -> base_cloud_blocks.FetchRequest
|
||||
5, // 6: cloud.Private.GetPrivateDataByType:input_type -> base_cloud_blocks.FetchRequest
|
||||
5, // 7: cloud.Private.SearchPrivateData:input_type -> base_cloud_blocks.FetchRequest
|
||||
2, // 8: cloud.Private.EncryptData:input_type -> cloud.DataRequest
|
||||
2, // 9: cloud.Private.DecryptData:input_type -> cloud.DataRequest
|
||||
6, // 10: cloud.Private.CreatePrivateData:output_type -> blocks.StatusReply
|
||||
6, // 10: cloud.Private.CreatePrivateData:output_type -> base_cloud_blocks.StatusReply
|
||||
3, // 11: cloud.Private.GetPrivateData:output_type -> cloud.CloudPrivateItem
|
||||
6, // 12: cloud.Private.UpdatePrivateData:output_type -> blocks.StatusReply
|
||||
6, // 13: cloud.Private.DeletePrivateData:output_type -> blocks.StatusReply
|
||||
6, // 12: cloud.Private.UpdatePrivateData:output_type -> base_cloud_blocks.StatusReply
|
||||
6, // 13: cloud.Private.DeletePrivateData:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 14: cloud.Private.ListPrivateData:output_type -> cloud.ListPrivateDataResponse
|
||||
1, // 15: cloud.Private.GetPrivateDataByType:output_type -> cloud.ListPrivateDataResponse
|
||||
1, // 16: cloud.Private.SearchPrivateData:output_type -> cloud.ListPrivateDataResponse
|
||||
6, // 17: cloud.Private.EncryptData:output_type -> blocks.StatusReply
|
||||
6, // 18: cloud.Private.DecryptData:output_type -> blocks.StatusReply
|
||||
6, // 17: cloud.Private.EncryptData:output_type -> base_cloud_blocks.StatusReply
|
||||
6, // 18: cloud.Private.DecryptData:output_type -> base_cloud_blocks.StatusReply
|
||||
10, // [10:19] is the sub-list for method output_type
|
||||
1, // [1:10] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -403,14 +403,14 @@ const file_module_base_cloud_proto_share_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\v \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\f \x01(\tR\tupdatedAt2\xcb\x02\n" +
|
||||
"\x05Share\x12=\n" +
|
||||
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\bGetShare\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudShareItem\x128\n" +
|
||||
"\vDeleteShare\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"updated_at\x18\f \x01(\tR\tupdatedAt2\x8d\x03\n" +
|
||||
"\x05Share\x12H\n" +
|
||||
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
|
||||
"\bGetShare\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudShareItem\x12N\n" +
|
||||
"\vDeleteShare\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
|
||||
"\n" +
|
||||
"ListShares\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12Q\n" +
|
||||
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"ListShares\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12\\\n" +
|
||||
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_share_proto_rawDescOnce sync.Once
|
||||
@@ -430,22 +430,22 @@ var file_module_base_cloud_proto_share_proto_goTypes = []any{
|
||||
(*ListSharesResponse)(nil), // 1: cloud.ListSharesResponse
|
||||
(*ValidateSharePasswordRequest)(nil), // 2: cloud.ValidateSharePasswordRequest
|
||||
(*CloudShareItem)(nil), // 3: cloud.CloudShareItem
|
||||
(*IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: blocks.StatusReply
|
||||
(*IdentRequest)(nil), // 4: base_cloud_blocks.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
|
||||
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cloud_proto_share_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListSharesResponse.shares:type_name -> cloud.CloudShareItem
|
||||
0, // 1: cloud.Share.CreateShare:input_type -> cloud.CreateShareRequest
|
||||
4, // 2: cloud.Share.GetShare:input_type -> blocks.IdentRequest
|
||||
4, // 3: cloud.Share.DeleteShare:input_type -> blocks.IdentRequest
|
||||
5, // 4: cloud.Share.ListShares:input_type -> blocks.FetchRequest
|
||||
4, // 2: cloud.Share.GetShare:input_type -> base_cloud_blocks.IdentRequest
|
||||
4, // 3: cloud.Share.DeleteShare:input_type -> base_cloud_blocks.IdentRequest
|
||||
5, // 4: cloud.Share.ListShares:input_type -> base_cloud_blocks.FetchRequest
|
||||
2, // 5: cloud.Share.ValidateSharePassword:input_type -> cloud.ValidateSharePasswordRequest
|
||||
6, // 6: cloud.Share.CreateShare:output_type -> blocks.StatusReply
|
||||
6, // 6: cloud.Share.CreateShare:output_type -> base_cloud_blocks.StatusReply
|
||||
3, // 7: cloud.Share.GetShare:output_type -> cloud.CloudShareItem
|
||||
6, // 8: cloud.Share.DeleteShare:output_type -> blocks.StatusReply
|
||||
6, // 8: cloud.Share.DeleteShare:output_type -> base_cloud_blocks.StatusReply
|
||||
1, // 9: cloud.Share.ListShares:output_type -> cloud.ListSharesResponse
|
||||
6, // 10: cloud.Share.ValidateSharePassword:output_type -> blocks.StatusReply
|
||||
6, // 10: cloud.Share.ValidateSharePassword:output_type -> base_cloud_blocks.StatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -245,10 +245,10 @@ const file_module_base_cloud_proto_space_proto_rawDesc = "" +
|
||||
"cloudNotes\x12A\n" +
|
||||
"\x0fcloud_bookmarks\x18\x11 \x03(\v2\x18.cloud.CloudBookmarkItemR\x0ecloudBookmarks\x12<\n" +
|
||||
"\rcloud_private\x18\x12 \x03(\v2\x17.cloud.CloudPrivateItemR\fcloudPrivate\x128\n" +
|
||||
"\fcloud_shares\x18\x13 \x03(\v2\x15.cloud.CloudShareItemR\vcloudShares2o\n" +
|
||||
"\x05Space\x12'\n" +
|
||||
"\x03Get\x12\r.blocks.Empty\x1a\x11.cloud.CloudSpace\x12=\n" +
|
||||
"\x12GetByKeyIdentifier\x12\x14.blocks.IdentRequest\x1a\x11.cloud.CloudSpaceB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
"\fcloud_shares\x18\x13 \x03(\v2\x15.cloud.CloudShareItemR\vcloudShares2\x85\x01\n" +
|
||||
"\x05Space\x122\n" +
|
||||
"\x03Get\x12\x18.base_cloud_blocks.Empty\x1a\x11.cloud.CloudSpace\x12H\n" +
|
||||
"\x12GetByKeyIdentifier\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x11.cloud.CloudSpaceB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cloud_proto_space_proto_rawDescOnce sync.Once
|
||||
@@ -271,8 +271,8 @@ var file_module_base_cloud_proto_space_proto_goTypes = []any{
|
||||
(*CloudBookmarkItem)(nil), // 4: cloud.CloudBookmarkItem
|
||||
(*CloudPrivateItem)(nil), // 5: cloud.CloudPrivateItem
|
||||
(*CloudShareItem)(nil), // 6: cloud.CloudShareItem
|
||||
(*Empty)(nil), // 7: blocks.Empty
|
||||
(*IdentRequest)(nil), // 8: blocks.IdentRequest
|
||||
(*Empty)(nil), // 7: base_cloud_blocks.Empty
|
||||
(*IdentRequest)(nil), // 8: base_cloud_blocks.IdentRequest
|
||||
}
|
||||
var file_module_base_cloud_proto_space_proto_depIdxs = []int32{
|
||||
1, // 0: cloud.CloudSpace.cloud_disk_dirs:type_name -> cloud.CloudDiskDirItem
|
||||
@@ -281,8 +281,8 @@ var file_module_base_cloud_proto_space_proto_depIdxs = []int32{
|
||||
4, // 3: cloud.CloudSpace.cloud_bookmarks:type_name -> cloud.CloudBookmarkItem
|
||||
5, // 4: cloud.CloudSpace.cloud_private:type_name -> cloud.CloudPrivateItem
|
||||
6, // 5: cloud.CloudSpace.cloud_shares:type_name -> cloud.CloudShareItem
|
||||
7, // 6: cloud.Space.Get:input_type -> blocks.Empty
|
||||
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> blocks.IdentRequest
|
||||
7, // 6: cloud.Space.Get:input_type -> base_cloud_blocks.Empty
|
||||
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> base_cloud_blocks.IdentRequest
|
||||
0, // 8: cloud.Space.Get:output_type -> cloud.CloudSpace
|
||||
0, // 9: cloud.Space.GetByKeyIdentifier:output_type -> cloud.CloudSpace
|
||||
8, // [8:10] is the sub-list for method output_type
|
||||
|
||||
@@ -6,30 +6,30 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 相册服务
|
||||
service Album {
|
||||
// 创建相册
|
||||
rpc CreateAlbum(CreateAlbumRequest) returns (blocks.StatusReply);
|
||||
rpc CreateAlbum(CreateAlbumRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取相册详情
|
||||
rpc GetAlbum(blocks.IdentRequest) returns (CloudAlbumItem);
|
||||
rpc GetAlbum(base_cloud_blocks.IdentRequest) returns (CloudAlbumItem);
|
||||
// 更新相册
|
||||
rpc UpdateAlbum(CloudAlbumItem) returns (blocks.StatusReply);
|
||||
rpc UpdateAlbum(CloudAlbumItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除相册
|
||||
rpc DeleteAlbum(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteAlbum(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取相册列表
|
||||
rpc ListAlbums(blocks.FetchRequest) returns (ListAlbumsResponse);
|
||||
rpc ListAlbums(base_cloud_blocks.FetchRequest) returns (ListAlbumsResponse);
|
||||
// 设置封面照片
|
||||
rpc SetCoverPhoto(SetCoverPhotoRequest) returns (blocks.StatusReply);
|
||||
rpc SetCoverPhoto(SetCoverPhotoRequest) returns (base_cloud_blocks.StatusReply);
|
||||
|
||||
// 上传照片
|
||||
rpc UploadPhoto(CloudPhotoItem) returns (blocks.StatusReply);
|
||||
rpc UploadPhoto(CloudPhotoItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取照片详情
|
||||
rpc GetPhoto(blocks.IdentRequest) returns (CloudPhotoItem);
|
||||
rpc GetPhoto(base_cloud_blocks.IdentRequest) returns (CloudPhotoItem);
|
||||
// 更新照片
|
||||
rpc UpdatePhoto(CloudPhotoItem) returns (blocks.StatusReply);
|
||||
rpc UpdatePhoto(CloudPhotoItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除照片
|
||||
rpc DeletePhoto(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeletePhoto(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取照片列表
|
||||
rpc ListPhotos(blocks.FetchRequest) returns (ListPhotosResponse);
|
||||
rpc ListPhotos(base_cloud_blocks.FetchRequest) returns (ListPhotosResponse);
|
||||
// 移动照片到其他相册
|
||||
rpc MovePhoto(MovePhotoRequest) returns (blocks.StatusReply);
|
||||
rpc MovePhoto(MovePhotoRequest) returns (base_cloud_blocks.StatusReply);
|
||||
}
|
||||
|
||||
// 请求消息定义
|
||||
@@ -99,4 +99,4 @@ message CloudPhotoItem {
|
||||
|
||||
// 关联关系
|
||||
CloudAlbumItem album = 16;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,17 +6,17 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 书签服务
|
||||
service Bookmark {
|
||||
// 创建书签
|
||||
rpc CreateBookmark(CreateBookmarkRequest) returns (blocks.StatusReply);
|
||||
rpc CreateBookmark(CreateBookmarkRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取书签详情
|
||||
rpc GetBookmark(blocks.IDRequest) returns (CloudBookmarkItem);
|
||||
rpc GetBookmark(base_cloud_blocks.IDRequest) returns (CloudBookmarkItem);
|
||||
// 更新书签
|
||||
rpc UpdateBookmark(CloudBookmarkItem) returns (blocks.StatusReply);
|
||||
rpc UpdateBookmark(CloudBookmarkItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除书签
|
||||
rpc DeleteBookmark(blocks.IDRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteBookmark(base_cloud_blocks.IDRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取书签列表
|
||||
rpc ListBookmarks(blocks.FetchRequest) returns (ListBookmarksResponse);
|
||||
rpc ListBookmarks(base_cloud_blocks.FetchRequest) returns (ListBookmarksResponse);
|
||||
// 导入书签
|
||||
rpc ImportBookmarks(ImportBookmarksRequest) returns (blocks.StatusReply);
|
||||
rpc ImportBookmarks(ImportBookmarksRequest) returns (base_cloud_blocks.StatusReply);
|
||||
}
|
||||
|
||||
message CreateBookmarkRequest {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_cloud_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/cloud/pb;cloud";
|
||||
|
||||
|
||||
@@ -6,36 +6,36 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 云盘目录服务
|
||||
service Disk {
|
||||
// 创建目录
|
||||
rpc CreateDir(CreateDirRequest) returns (blocks.StatusReply);
|
||||
rpc CreateDir(CreateDirRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取目录详情
|
||||
rpc GetDir(blocks.IdentRequest) returns (CloudDiskDirItem);
|
||||
rpc GetDir(base_cloud_blocks.IdentRequest) returns (CloudDiskDirItem);
|
||||
// 更新目录
|
||||
rpc UpdateDir(CloudDiskDirItem) returns (blocks.StatusReply);
|
||||
rpc UpdateDir(CloudDiskDirItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除目录
|
||||
rpc DeleteDir(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteDir(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取目录列表
|
||||
rpc ListDirs(blocks.FetchRequest) returns (ListDirsResponse);
|
||||
rpc ListDirs(base_cloud_blocks.FetchRequest) returns (ListDirsResponse);
|
||||
// 获取目录树
|
||||
rpc GetDirTree(blocks.IdentRequest) returns (CloudDiskDirItem);
|
||||
rpc GetDirTree(base_cloud_blocks.IdentRequest) returns (CloudDiskDirItem);
|
||||
// 移动目录
|
||||
rpc MoveDir(MoveDirRequest) returns (blocks.StatusReply);
|
||||
rpc MoveDir(MoveDirRequest) returns (base_cloud_blocks.StatusReply);
|
||||
|
||||
// 上传文件
|
||||
rpc UploadFile(CloudDiskFileRequest) returns (blocks.StatusReply);
|
||||
rpc UploadFile(CloudDiskFileRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取文件详情
|
||||
rpc GetFile(blocks.IdentRequest) returns (CloudDiskFileItem);
|
||||
rpc GetFile(base_cloud_blocks.IdentRequest) returns (CloudDiskFileItem);
|
||||
// 更新文件
|
||||
rpc UpdateFile(CloudDiskFileItem) returns (blocks.StatusReply);
|
||||
rpc UpdateFile(CloudDiskFileItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除文件
|
||||
rpc DeleteFile(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteFile(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取文件列表
|
||||
rpc ListFiles(blocks.FetchRequest) returns (ListFilesResponse);
|
||||
rpc ListFiles(base_cloud_blocks.FetchRequest) returns (ListFilesResponse);
|
||||
// 移动文件
|
||||
rpc MoveFile(MoveFileRequest) returns (blocks.StatusReply);
|
||||
rpc MoveFile(MoveFileRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 复制文件
|
||||
rpc CopyFile(CopyFileRequest) returns (blocks.StatusReply);
|
||||
rpc CopyFile(CopyFileRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 搜索文件
|
||||
rpc SearchFiles(blocks.FetchRequest) returns (ListFilesResponse);
|
||||
rpc SearchFiles(base_cloud_blocks.FetchRequest) returns (ListFilesResponse);
|
||||
}
|
||||
|
||||
message CreateDirRequest {
|
||||
|
||||
@@ -6,26 +6,26 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 笔记服务
|
||||
service Note {
|
||||
// 创建笔记
|
||||
rpc CreateNote(CreateNoteRequest) returns (blocks.StatusReply);
|
||||
rpc CreateNote(CreateNoteRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取笔记详情
|
||||
rpc GetNote(blocks.IdentRequest) returns (CloudNoteItem);
|
||||
rpc GetNote(base_cloud_blocks.IdentRequest) returns (CloudNoteItem);
|
||||
// 更新笔记
|
||||
rpc UpdateNote(CloudNoteItem) returns (blocks.StatusReply);
|
||||
rpc UpdateNote(CloudNoteItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除笔记
|
||||
rpc DeleteNote(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteNote(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取笔记列表
|
||||
rpc ListNotes(blocks.FetchRequest) returns (ListNotesResponse);
|
||||
rpc ListNotes(base_cloud_blocks.FetchRequest) returns (ListNotesResponse);
|
||||
// 置顶/取消置顶笔记
|
||||
rpc TogglePin(TogglePinRequest) returns (blocks.StatusReply);
|
||||
rpc TogglePin(TogglePinRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 增加浏览次数
|
||||
rpc IncrementViews(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc IncrementViews(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 搜索笔记
|
||||
rpc SearchNotes(blocks.FetchRequest) returns (ListNotesResponse);
|
||||
rpc SearchNotes(base_cloud_blocks.FetchRequest) returns (ListNotesResponse);
|
||||
|
||||
// 上传附件
|
||||
rpc InsertAttachment(NoteAttachmentItem) returns (blocks.StatusReply);
|
||||
rpc InsertAttachment(NoteAttachmentItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除附件
|
||||
rpc DeleteAttachment(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteAttachment(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
}
|
||||
|
||||
// 请求消息定义
|
||||
|
||||
@@ -6,23 +6,23 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 隐私数据服务
|
||||
service Private {
|
||||
// 创建隐私数据
|
||||
rpc CreatePrivateData(CreatePrivateDataRequest) returns (blocks.StatusReply);
|
||||
rpc CreatePrivateData(CreatePrivateDataRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取隐私数据详情
|
||||
rpc GetPrivateData(blocks.IdentRequest) returns (CloudPrivateItem);
|
||||
rpc GetPrivateData(base_cloud_blocks.IdentRequest) returns (CloudPrivateItem);
|
||||
// 更新隐私数据
|
||||
rpc UpdatePrivateData(CloudPrivateItem) returns (blocks.StatusReply);
|
||||
rpc UpdatePrivateData(CloudPrivateItem) returns (base_cloud_blocks.StatusReply);
|
||||
// 删除隐私数据
|
||||
rpc DeletePrivateData(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeletePrivateData(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取隐私数据列表
|
||||
rpc ListPrivateData(blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
rpc ListPrivateData(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
// 按类型获取隐私数据
|
||||
rpc GetPrivateDataByType(blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
rpc GetPrivateDataByType(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
// 搜索隐私数据
|
||||
rpc SearchPrivateData(blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
rpc SearchPrivateData(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
|
||||
// 加密数据
|
||||
rpc EncryptData(DataRequest) returns (blocks.StatusReply);
|
||||
rpc EncryptData(DataRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 解密数据
|
||||
rpc DecryptData(DataRequest) returns (blocks.StatusReply);
|
||||
rpc DecryptData(DataRequest) returns (base_cloud_blocks.StatusReply);
|
||||
}
|
||||
// 请求消息定义
|
||||
message CreatePrivateDataRequest {
|
||||
|
||||
@@ -6,15 +6,15 @@ import "module/base/cloud/proto/const.proto";
|
||||
// 分享服务
|
||||
service Share {
|
||||
// 创建分享
|
||||
rpc CreateShare(CreateShareRequest) returns (blocks.StatusReply);
|
||||
rpc CreateShare(CreateShareRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取分享详情
|
||||
rpc GetShare(blocks.IdentRequest) returns (CloudShareItem);
|
||||
rpc GetShare(base_cloud_blocks.IdentRequest) returns (CloudShareItem);
|
||||
// 删除分享
|
||||
rpc DeleteShare(blocks.IdentRequest) returns (blocks.StatusReply);
|
||||
rpc DeleteShare(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
|
||||
// 获取分享列表
|
||||
rpc ListShares(blocks.FetchRequest) returns (ListSharesResponse);
|
||||
rpc ListShares(base_cloud_blocks.FetchRequest) returns (ListSharesResponse);
|
||||
// 验证分享密码
|
||||
rpc ValidateSharePassword(ValidateSharePasswordRequest) returns (blocks.StatusReply);
|
||||
rpc ValidateSharePassword(ValidateSharePasswordRequest) returns (base_cloud_blocks.StatusReply);
|
||||
}
|
||||
|
||||
// 请求消息定义
|
||||
|
||||
@@ -12,10 +12,10 @@ import "module/base/cloud/proto/share.proto";
|
||||
|
||||
service Space {
|
||||
// 获取空间数据
|
||||
rpc Get(blocks.Empty) returns (CloudSpace);
|
||||
rpc Get(base_cloud_blocks.Empty) returns (CloudSpace);
|
||||
|
||||
// 获取空间数据
|
||||
rpc GetByKeyIdentifier(blocks.IdentRequest) returns (CloudSpace);
|
||||
rpc GetByKeyIdentifier(base_cloud_blocks.IdentRequest) returns (CloudSpace);
|
||||
}
|
||||
|
||||
// 系统统计和配置模型
|
||||
|
||||
43
module/base/cloud/service/expose.go
Normal file
43
module/base/cloud/service/expose.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/cloud/internal/server"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterAlbumHandlerServer(ctx, options.Gateway, server.NewAlbumServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterBookmarkHandlerServer(ctx, options.Gateway, server.NewBookmarkServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterDiskHandlerServer(ctx, options.Gateway, server.NewDiskServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterNoteHandlerServer(ctx, options.Gateway, server.NewNoteServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterPrivateHandlerServer(ctx, options.Gateway, server.NewPrivateServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterShareHandlerServer(ctx, options.Gateway, server.NewShareServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterSpaceHandlerServer(ctx, options.Gateway, server.NewSpaceServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
* @Description: 提供文章、页面、分类、标签等内容管理功能
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/cms/internal/config"
|
||||
@@ -28,7 +28,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 创建gRPC服务器实例,监听指定地址
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
|
||||
// 创建微服务实例,配置服务参数
|
||||
srv := service.New(
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -31,7 +36,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterSiteServer(srv.Grpc, NewSiteServer())
|
||||
pb.RegisterTagsServer(srv.Grpc, NewTagsServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -441,12 +441,12 @@ var File_module_base_cms_proto_category_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_cms_proto_category_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"$module/base/cms/proto/category.proto\x12\x03cms\x1a!module/base/cms/proto/const.proto\"V\n" +
|
||||
"\x11CategoryListReply\x12+\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x17.blocks.CmsCategoryItemR\x04data\x12\x14\n" +
|
||||
"$module/base/cms/proto/category.proto\x12\x03cms\x1a!module/base/cms/proto/const.proto\"_\n" +
|
||||
"\x11CategoryListReply\x124\n" +
|
||||
"\x04data\x18\x01 \x03(\v2 .base_cms_blocks.CmsCategoryItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count\"1\n" +
|
||||
"\x13AddCategoryResponse\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\"\xad\x02\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\"\xb6\x02\n" +
|
||||
"\x12AddCategoryRequest\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1c\n" +
|
||||
@@ -461,8 +461,8 @@ const file_module_base_cms_proto_category_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\b \x01(\tR\n" +
|
||||
"updated_at\x12+\n" +
|
||||
"\x04data\x18\t \x03(\v2\x17.blocks.CmsCategoryItemR\x04data\"\xd4\x02\n" +
|
||||
"updated_at\x124\n" +
|
||||
"\x04data\x18\t \x03(\v2 .base_cms_blocks.CmsCategoryItemR\x04data\"\xdd\x02\n" +
|
||||
"\x15ModifyCategoryRequest\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1c\n" +
|
||||
@@ -477,19 +477,19 @@ const file_module_base_cms_proto_category_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\b \x01(\tR\n" +
|
||||
"updated_at\x12+\n" +
|
||||
"\x04data\x18\t \x03(\v2\x17.blocks.CmsCategoryItemR\x04data\x12\"\n" +
|
||||
"updated_at\x124\n" +
|
||||
"\x04data\x18\t \x03(\v2 .base_cms_blocks.CmsCategoryItemR\x04data\x12\"\n" +
|
||||
"\fcategory_key\x18\n" +
|
||||
" \x01(\tR\fcategory_key\"3\n" +
|
||||
"\x15DeleteCategoryRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\"*\n" +
|
||||
"\x0eKeywordRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword2\xf7\x01\n" +
|
||||
"\bCategory\x127\n" +
|
||||
"\x05Fetch\x12\x14.blocks.IdentRequest\x1a\x16.cms.CategoryListReply\"\x00\x128\n" +
|
||||
"\x06Create\x12\x17.blocks.CmsCategoryItem\x1a\x13.blocks.StatusReply\"\x00\x12;\n" +
|
||||
"\x06Modify\x12\x1a.cms.ModifyCategoryRequest\x1a\x13.blocks.StatusReply\"\x00\x12;\n" +
|
||||
"\x06Delete\x12\x1a.cms.DeleteCategoryRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword2\xa4\x02\n" +
|
||||
"\bCategory\x12@\n" +
|
||||
"\x05Fetch\x12\x1d.base_cms_blocks.IdentRequest\x1a\x16.cms.CategoryListReply\"\x00\x12J\n" +
|
||||
"\x06Create\x12 .base_cms_blocks.CmsCategoryItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12D\n" +
|
||||
"\x06Modify\x12\x1a.cms.ModifyCategoryRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12D\n" +
|
||||
"\x06Delete\x12\x1a.cms.DeleteCategoryRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_category_proto_rawDescOnce sync.Once
|
||||
@@ -511,22 +511,22 @@ var file_module_base_cms_proto_category_proto_goTypes = []any{
|
||||
(*ModifyCategoryRequest)(nil), // 3: cms.ModifyCategoryRequest
|
||||
(*DeleteCategoryRequest)(nil), // 4: cms.DeleteCategoryRequest
|
||||
(*KeywordRequest)(nil), // 5: cms.KeywordRequest
|
||||
(*CmsCategoryItem)(nil), // 6: blocks.CmsCategoryItem
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 8: blocks.StatusReply
|
||||
(*CmsCategoryItem)(nil), // 6: base_cms_blocks.CmsCategoryItem
|
||||
(*IdentRequest)(nil), // 7: base_cms_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 8: base_cms_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cms_proto_category_proto_depIdxs = []int32{
|
||||
6, // 0: cms.CategoryListReply.data:type_name -> blocks.CmsCategoryItem
|
||||
6, // 1: cms.AddCategoryRequest.data:type_name -> blocks.CmsCategoryItem
|
||||
6, // 2: cms.ModifyCategoryRequest.data:type_name -> blocks.CmsCategoryItem
|
||||
7, // 3: cms.Category.Fetch:input_type -> blocks.IdentRequest
|
||||
6, // 4: cms.Category.Create:input_type -> blocks.CmsCategoryItem
|
||||
6, // 0: cms.CategoryListReply.data:type_name -> base_cms_blocks.CmsCategoryItem
|
||||
6, // 1: cms.AddCategoryRequest.data:type_name -> base_cms_blocks.CmsCategoryItem
|
||||
6, // 2: cms.ModifyCategoryRequest.data:type_name -> base_cms_blocks.CmsCategoryItem
|
||||
7, // 3: cms.Category.Fetch:input_type -> base_cms_blocks.IdentRequest
|
||||
6, // 4: cms.Category.Create:input_type -> base_cms_blocks.CmsCategoryItem
|
||||
3, // 5: cms.Category.Modify:input_type -> cms.ModifyCategoryRequest
|
||||
4, // 6: cms.Category.Delete:input_type -> cms.DeleteCategoryRequest
|
||||
0, // 7: cms.Category.Fetch:output_type -> cms.CategoryListReply
|
||||
8, // 8: cms.Category.Create:output_type -> blocks.StatusReply
|
||||
8, // 9: cms.Category.Modify:output_type -> blocks.StatusReply
|
||||
8, // 10: cms.Category.Delete:output_type -> blocks.StatusReply
|
||||
8, // 8: cms.Category.Create:output_type -> base_cms_blocks.StatusReply
|
||||
8, // 9: cms.Category.Modify:output_type -> base_cms_blocks.StatusReply
|
||||
8, // 10: cms.Category.Delete:output_type -> base_cms_blocks.StatusReply
|
||||
7, // [7:11] is the sub-list for method output_type
|
||||
3, // [3:7] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_base_cms_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"!module/base/cms/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"!module/base/cms/proto/const.proto\x12\x0fbase_cms_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc4\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12A\n" +
|
||||
"\x06params\x18\x03 \x03(\v2).base_cms_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xff\x02\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12E\n" +
|
||||
"\x06params\x18\x03 \x03(\v2-.base_cms_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb8\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.base_cms_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe9\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x126\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2 .base_cms_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd5\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x127\n" +
|
||||
"\adetails\x18! \x03(\v2\x1d.base_cms_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"X\n" +
|
||||
"\x11FeedPostListReply\x121\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1d.base_cms_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe3\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x129\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1f.base_cms_blocks.FeedAttachItemR\aattachs\x120\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1c.base_cms_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Z\n" +
|
||||
"\x12GroupPostListReply\x122\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1e.base_cms_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf6\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12:\n" +
|
||||
"\aattachs\x18\t \x03(\v2 .base_cms_blocks.GroupAttachItemR\aattachs\x121\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1d.base_cms_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_base_cms_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"a\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x121\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1d.base_cms_blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_base_cms_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_cms_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_base_cms_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_cms_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_cms_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: base_cms_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: base_cms_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: base_cms_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: base_cms_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: base_cms_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: base_cms_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: base_cms_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: base_cms_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: base_cms_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: base_cms_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: base_cms_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: base_cms_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: base_cms_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: base_cms_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: base_cms_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: base_cms_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: base_cms_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: base_cms_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: base_cms_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: base_cms_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: base_cms_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: base_cms_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: base_cms_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: base_cms_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: base_cms_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: base_cms_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: base_cms_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: base_cms_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: base_cms_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: base_cms_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: base_cms_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: base_cms_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: base_cms_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: base_cms_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: base_cms_blocks.FetchRelationItemReply
|
||||
nil, // 37: base_cms_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: base_cms_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: base_cms_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_cms_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: base_cms_blocks.FetchRequest.params:type_name -> base_cms_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: base_cms_blocks.MallFetchRequest.params:type_name -> base_cms_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: base_cms_blocks.MarketFetchRequest.params:type_name -> base_cms_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: base_cms_blocks.CmsCategoryItem.child:type_name -> base_cms_blocks.CmsCategoryItem
|
||||
26, // 4: base_cms_blocks.OrderSummaryItem.details:type_name -> base_cms_blocks.OrderDetails
|
||||
28, // 5: base_cms_blocks.FeedPostListReply.list:type_name -> base_cms_blocks.FeedPostItem
|
||||
29, // 6: base_cms_blocks.FeedPostItem.attachs:type_name -> base_cms_blocks.FeedAttachItem
|
||||
30, // 7: base_cms_blocks.FeedPostItem.tags:type_name -> base_cms_blocks.FeedTagItem
|
||||
32, // 8: base_cms_blocks.GroupPostListReply.list:type_name -> base_cms_blocks.GroupPostItem
|
||||
33, // 9: base_cms_blocks.GroupPostItem.attachs:type_name -> base_cms_blocks.GroupAttachItem
|
||||
34, // 10: base_cms_blocks.GroupPostItem.tags:type_name -> base_cms_blocks.GroupTagItem
|
||||
35, // 11: base_cms_blocks.FetchRelationItemReply.data:type_name -> base_cms_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -412,7 +412,7 @@ const file_module_base_cms_proto_pages_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"!module/base/cms/proto/pages.proto\x12\x03cms\x1a!module/base/cms/proto/const.proto\"(\n" +
|
||||
"\x14GetPagesByKeyRequest\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\"\xe4\x04\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\"\xf6\x04\n" +
|
||||
"\tPagesItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1e\n" +
|
||||
@@ -433,9 +433,9 @@ const file_module_base_cms_proto_pages_proto_rawDesc = "" +
|
||||
"cover_path\x12\x18\n" +
|
||||
"\acontent\x18\v \x01(\tR\acontent\x12$\n" +
|
||||
"\rhas_accessory\x18\f \x01(\bR\rhas_accessory\x12:\n" +
|
||||
"\x18accessory_identity_array\x18\r \x03(\tR\x18accessory_identity_array\x12@\n" +
|
||||
"\x0eaccessory_data\x18\x0e \x03(\v2\x18.blocks.CmsAccessoryItemR\x0eaccessory_data\x121\n" +
|
||||
"\ttags_data\x18\x0f \x03(\v2\x13.blocks.CmsTagsItemR\ttags_data\x120\n" +
|
||||
"\x18accessory_identity_array\x18\r \x03(\tR\x18accessory_identity_array\x12I\n" +
|
||||
"\x0eaccessory_data\x18\x0e \x03(\v2!.base_cms_blocks.CmsAccessoryItemR\x0eaccessory_data\x12:\n" +
|
||||
"\ttags_data\x18\x0f \x03(\v2\x1c.base_cms_blocks.CmsTagsItemR\ttags_data\x120\n" +
|
||||
"\x13tags_identity_array\x18\x10 \x03(\tR\x13tags_identity_array\x12\x12\n" +
|
||||
"\x04hits\x18\x11 \x01(\x03R\x04hits\"h\n" +
|
||||
"\x10PagesListRequest\x12\x12\n" +
|
||||
@@ -447,14 +447,14 @@ const file_module_base_cms_proto_pages_proto_rawDesc = "" +
|
||||
"\x04data\x18\x01 \x03(\v2\x0e.cms.PagesItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count\"-\n" +
|
||||
"\x0fGetPagesRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity2\xc9\x02\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity2\xed\x02\n" +
|
||||
"\x05Pages\x125\n" +
|
||||
"\x05Fetch\x12\x15.cms.PagesListRequest\x1a\x13.cms.PagesListReply\"\x00\x127\n" +
|
||||
"\rGetByIdentity\x12\x14.cms.GetPagesRequest\x1a\x0e.cms.PagesItem\"\x00\x127\n" +
|
||||
"\bGetByKey\x12\x19.cms.GetPagesByKeyRequest\x1a\x0e.cms.PagesItem\"\x00\x12/\n" +
|
||||
"\x06Create\x12\x0e.cms.PagesItem\x1a\x13.blocks.StatusReply\"\x00\x12/\n" +
|
||||
"\x06Modify\x12\x0e.cms.PagesItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
"\bGetByKey\x12\x19.cms.GetPagesByKeyRequest\x1a\x0e.cms.PagesItem\"\x00\x128\n" +
|
||||
"\x06Create\x12\x0e.cms.PagesItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x128\n" +
|
||||
"\x06Modify\x12\x0e.cms.PagesItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x06Delete\x12\x1d.base_cms_blocks.IdentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_pages_proto_rawDescOnce sync.Once
|
||||
@@ -475,27 +475,27 @@ var file_module_base_cms_proto_pages_proto_goTypes = []any{
|
||||
(*PagesListRequest)(nil), // 2: cms.PagesListRequest
|
||||
(*PagesListReply)(nil), // 3: cms.PagesListReply
|
||||
(*GetPagesRequest)(nil), // 4: cms.GetPagesRequest
|
||||
(*CmsAccessoryItem)(nil), // 5: blocks.CmsAccessoryItem
|
||||
(*CmsTagsItem)(nil), // 6: blocks.CmsTagsItem
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 8: blocks.StatusReply
|
||||
(*CmsAccessoryItem)(nil), // 5: base_cms_blocks.CmsAccessoryItem
|
||||
(*CmsTagsItem)(nil), // 6: base_cms_blocks.CmsTagsItem
|
||||
(*IdentRequest)(nil), // 7: base_cms_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 8: base_cms_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cms_proto_pages_proto_depIdxs = []int32{
|
||||
5, // 0: cms.PagesItem.accessory_data:type_name -> blocks.CmsAccessoryItem
|
||||
6, // 1: cms.PagesItem.tags_data:type_name -> blocks.CmsTagsItem
|
||||
5, // 0: cms.PagesItem.accessory_data:type_name -> base_cms_blocks.CmsAccessoryItem
|
||||
6, // 1: cms.PagesItem.tags_data:type_name -> base_cms_blocks.CmsTagsItem
|
||||
1, // 2: cms.PagesListReply.data:type_name -> cms.PagesItem
|
||||
2, // 3: cms.Pages.Fetch:input_type -> cms.PagesListRequest
|
||||
4, // 4: cms.Pages.GetByIdentity:input_type -> cms.GetPagesRequest
|
||||
0, // 5: cms.Pages.GetByKey:input_type -> cms.GetPagesByKeyRequest
|
||||
1, // 6: cms.Pages.Create:input_type -> cms.PagesItem
|
||||
1, // 7: cms.Pages.Modify:input_type -> cms.PagesItem
|
||||
7, // 8: cms.Pages.Delete:input_type -> blocks.IdentRequest
|
||||
7, // 8: cms.Pages.Delete:input_type -> base_cms_blocks.IdentRequest
|
||||
3, // 9: cms.Pages.Fetch:output_type -> cms.PagesListReply
|
||||
1, // 10: cms.Pages.GetByIdentity:output_type -> cms.PagesItem
|
||||
1, // 11: cms.Pages.GetByKey:output_type -> cms.PagesItem
|
||||
8, // 12: cms.Pages.Create:output_type -> blocks.StatusReply
|
||||
8, // 13: cms.Pages.Modify:output_type -> blocks.StatusReply
|
||||
8, // 14: cms.Pages.Delete:output_type -> blocks.StatusReply
|
||||
8, // 12: cms.Pages.Create:output_type -> base_cms_blocks.StatusReply
|
||||
8, // 13: cms.Pages.Modify:output_type -> base_cms_blocks.StatusReply
|
||||
8, // 14: cms.Pages.Delete:output_type -> base_cms_blocks.StatusReply
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
|
||||
@@ -1014,7 +1014,8 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12$\n" +
|
||||
"\rpost_identity\x18\x02 \x01(\tR\rpost_identity\"'\n" +
|
||||
"\x13GetPostByKeyRequest\x12\x10\n" +
|
||||
"\x03key\x18\x03 \x01(\tR\x03key\"\xf6\t\n" +
|
||||
"\x03key\x18\x03 \x01(\tR\x03key\"\x91\n" +
|
||||
"\n" +
|
||||
"\bPostItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1a\n" +
|
||||
@@ -1051,10 +1052,10 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
|
||||
"\fcomment_hits\x18\x16 \x01(\x03R\fcomment_hits\x12\x1c\n" +
|
||||
"\tpost_type\x18\x17 \x01(\x05R\tpost_type\x12\x16\n" +
|
||||
"\x06rights\x18\x18 \x01(\tR\x06rights\x12\x10\n" +
|
||||
"\x03key\x18\x19 \x01(\tR\x03key\x12=\n" +
|
||||
"\rcategory_data\x18\x1a \x03(\v2\x17.blocks.CmsCategoryItemR\rcategory_data\x121\n" +
|
||||
"\ttags_data\x18\x1b \x03(\v2\x13.blocks.CmsTagsItemR\ttags_data\x12@\n" +
|
||||
"\x0eaccessory_data\x18\x1c \x03(\v2\x18.blocks.CmsAccessoryItemR\x0eaccessory_data\x12\x12\n" +
|
||||
"\x03key\x18\x19 \x01(\tR\x03key\x12F\n" +
|
||||
"\rcategory_data\x18\x1a \x03(\v2 .base_cms_blocks.CmsCategoryItemR\rcategory_data\x12:\n" +
|
||||
"\ttags_data\x18\x1b \x03(\v2\x1c.base_cms_blocks.CmsTagsItemR\ttags_data\x12I\n" +
|
||||
"\x0eaccessory_data\x18\x1c \x03(\v2!.base_cms_blocks.CmsAccessoryItemR\x0eaccessory_data\x12\x12\n" +
|
||||
"\x04lang\x18\x1d \x01(\tR\x04lang\x12$\n" +
|
||||
"\rsource_origin\x18\x1e \x01(\tR\rsource_origin\x12\x1e\n" +
|
||||
"\n" +
|
||||
@@ -1114,28 +1115,29 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
|
||||
"\vop_identity\x18\x02 \x01(\tR\vop_identity\"h\n" +
|
||||
"\x18CommentOpIdentityRequest\x12*\n" +
|
||||
"\x10comment_identity\x18\x01 \x01(\tR\x10comment_identity\x12 \n" +
|
||||
"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xaa\t\n" +
|
||||
"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xba\n" +
|
||||
"\n" +
|
||||
"\x04Post\x123\n" +
|
||||
"\x05Fetch\x12\x14.cms.PostListRequest\x1a\x12.cms.PostListReply\"\x00\x125\n" +
|
||||
"\rGetByIdentity\x12\x13.cms.GetPostRequest\x1a\r.cms.PostItem\"\x00\x125\n" +
|
||||
"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x128\n" +
|
||||
"\x06Search\x12\x18.blocks.CmsSearchRequest\x1a\x12.cms.PostListReply\"\x00\x12.\n" +
|
||||
"\x06Create\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x12.\n" +
|
||||
"\x06Modify\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
|
||||
"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
|
||||
"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
|
||||
"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
|
||||
"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
|
||||
"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x125\n" +
|
||||
"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x12A\n" +
|
||||
"\x06Search\x12!.base_cms_blocks.CmsSearchRequest\x1a\x12.cms.PostListReply\"\x00\x127\n" +
|
||||
"\x06Create\x12\r.cms.PostItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x127\n" +
|
||||
"\x06Modify\x12\r.cms.PostItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x06Delete\x12\x1d.base_cms_blocks.IdentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
|
||||
"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
|
||||
"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12L\n" +
|
||||
"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12L\n" +
|
||||
"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12B\n" +
|
||||
"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x12>\n" +
|
||||
"\n" +
|
||||
"AddComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
|
||||
"\rModifyComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
|
||||
"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
|
||||
"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
|
||||
"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
"AddComment\x12\x10.cms.CommentItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12A\n" +
|
||||
"\rModifyComment\x12\x10.cms.CommentItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
|
||||
"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12P\n" +
|
||||
"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12P\n" +
|
||||
"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12R\n" +
|
||||
"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12R\n" +
|
||||
"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_post_proto_rawDescOnce sync.Once
|
||||
@@ -1162,27 +1164,27 @@ var file_module_base_cms_proto_post_proto_goTypes = []any{
|
||||
(*CommentListResponse)(nil), // 8: cms.CommentListResponse
|
||||
(*PostOpIdentityRequest)(nil), // 9: cms.PostOpIdentityRequest
|
||||
(*CommentOpIdentityRequest)(nil), // 10: cms.CommentOpIdentityRequest
|
||||
(*CmsCategoryItem)(nil), // 11: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 12: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 13: blocks.CmsAccessoryItem
|
||||
(*CmsSearchRequest)(nil), // 14: blocks.CmsSearchRequest
|
||||
(*IdentRequest)(nil), // 15: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 16: blocks.StatusReply
|
||||
(*CmsCategoryItem)(nil), // 11: base_cms_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 12: base_cms_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 13: base_cms_blocks.CmsAccessoryItem
|
||||
(*CmsSearchRequest)(nil), // 14: base_cms_blocks.CmsSearchRequest
|
||||
(*IdentRequest)(nil), // 15: base_cms_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 16: base_cms_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cms_proto_post_proto_depIdxs = []int32{
|
||||
11, // 0: cms.PostItem.category_data:type_name -> blocks.CmsCategoryItem
|
||||
12, // 1: cms.PostItem.tags_data:type_name -> blocks.CmsTagsItem
|
||||
13, // 2: cms.PostItem.accessory_data:type_name -> blocks.CmsAccessoryItem
|
||||
11, // 0: cms.PostItem.category_data:type_name -> base_cms_blocks.CmsCategoryItem
|
||||
12, // 1: cms.PostItem.tags_data:type_name -> base_cms_blocks.CmsTagsItem
|
||||
13, // 2: cms.PostItem.accessory_data:type_name -> base_cms_blocks.CmsAccessoryItem
|
||||
2, // 3: cms.PostListReply.data:type_name -> cms.PostItem
|
||||
6, // 4: cms.CommentItem.list:type_name -> cms.CommentItem
|
||||
6, // 5: cms.CommentListResponse.list:type_name -> cms.CommentItem
|
||||
3, // 6: cms.Post.Fetch:input_type -> cms.PostListRequest
|
||||
5, // 7: cms.Post.GetByIdentity:input_type -> cms.GetPostRequest
|
||||
1, // 8: cms.Post.GetByKey:input_type -> cms.GetPostByKeyRequest
|
||||
14, // 9: cms.Post.Search:input_type -> blocks.CmsSearchRequest
|
||||
14, // 9: cms.Post.Search:input_type -> base_cms_blocks.CmsSearchRequest
|
||||
2, // 10: cms.Post.Create:input_type -> cms.PostItem
|
||||
2, // 11: cms.Post.Modify:input_type -> cms.PostItem
|
||||
15, // 12: cms.Post.Delete:input_type -> blocks.IdentRequest
|
||||
15, // 12: cms.Post.Delete:input_type -> base_cms_blocks.IdentRequest
|
||||
9, // 13: cms.Post.IncrPostLike:input_type -> cms.PostOpIdentityRequest
|
||||
9, // 14: cms.Post.DescPostLike:input_type -> cms.PostOpIdentityRequest
|
||||
9, // 15: cms.Post.IncrPostUnlike:input_type -> cms.PostOpIdentityRequest
|
||||
@@ -1199,21 +1201,21 @@ var file_module_base_cms_proto_post_proto_depIdxs = []int32{
|
||||
2, // 26: cms.Post.GetByIdentity:output_type -> cms.PostItem
|
||||
2, // 27: cms.Post.GetByKey:output_type -> cms.PostItem
|
||||
4, // 28: cms.Post.Search:output_type -> cms.PostListReply
|
||||
16, // 29: cms.Post.Create:output_type -> blocks.StatusReply
|
||||
16, // 30: cms.Post.Modify:output_type -> blocks.StatusReply
|
||||
16, // 31: cms.Post.Delete:output_type -> blocks.StatusReply
|
||||
16, // 32: cms.Post.IncrPostLike:output_type -> blocks.StatusReply
|
||||
16, // 33: cms.Post.DescPostLike:output_type -> blocks.StatusReply
|
||||
16, // 34: cms.Post.IncrPostUnlike:output_type -> blocks.StatusReply
|
||||
16, // 35: cms.Post.DescPostUnlike:output_type -> blocks.StatusReply
|
||||
16, // 29: cms.Post.Create:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 30: cms.Post.Modify:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 31: cms.Post.Delete:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 32: cms.Post.IncrPostLike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 33: cms.Post.DescPostLike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 34: cms.Post.IncrPostUnlike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 35: cms.Post.DescPostUnlike:output_type -> base_cms_blocks.StatusReply
|
||||
8, // 36: cms.Post.CommentList:output_type -> cms.CommentListResponse
|
||||
16, // 37: cms.Post.AddComment:output_type -> blocks.StatusReply
|
||||
16, // 38: cms.Post.ModifyComment:output_type -> blocks.StatusReply
|
||||
16, // 39: cms.Post.DeleteComment:output_type -> blocks.StatusReply
|
||||
16, // 40: cms.Post.IncrCommentLike:output_type -> blocks.StatusReply
|
||||
16, // 41: cms.Post.DescCommentLike:output_type -> blocks.StatusReply
|
||||
16, // 42: cms.Post.IncrCommentUnlike:output_type -> blocks.StatusReply
|
||||
16, // 43: cms.Post.DescCommentUnlike:output_type -> blocks.StatusReply
|
||||
16, // 37: cms.Post.AddComment:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 38: cms.Post.ModifyComment:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 39: cms.Post.DeleteComment:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 40: cms.Post.IncrCommentLike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 41: cms.Post.DescCommentLike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 42: cms.Post.IncrCommentUnlike:output_type -> base_cms_blocks.StatusReply
|
||||
16, // 43: cms.Post.DescCommentUnlike:output_type -> base_cms_blocks.StatusReply
|
||||
25, // [25:44] is the sub-list for method output_type
|
||||
6, // [6:25] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
|
||||
@@ -212,13 +212,13 @@ const file_module_base_cms_proto_site_proto_rawDesc = "" +
|
||||
"\x03seo\x18\b \x01(\tR\x03seo\x12\x14\n" +
|
||||
"\x05theme\x18\t \x01(\tR\x05theme\x12\x18\n" +
|
||||
"\aconfigs\x18\n" +
|
||||
" \x01(\tR\aconfigs2\xf9\x01\n" +
|
||||
"\x04Site\x12,\n" +
|
||||
"\x05Fetch\x12\r.blocks.Empty\x1a\x12.cms.SiteListReply\"\x00\x12,\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\r.cms.SiteItem\"\x00\x12.\n" +
|
||||
"\x06Create\x12\r.cms.SiteItem\x1a\x13.blocks.StatusReply\"\x00\x12.\n" +
|
||||
"\x06Modify\x12\r.cms.SiteItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
" \x01(\tR\aconfigs2\xaf\x02\n" +
|
||||
"\x04Site\x125\n" +
|
||||
"\x05Fetch\x12\x16.base_cms_blocks.Empty\x1a\x12.cms.SiteListReply\"\x00\x125\n" +
|
||||
"\x03Get\x12\x1d.base_cms_blocks.IdentRequest\x1a\r.cms.SiteItem\"\x00\x127\n" +
|
||||
"\x06Create\x12\r.cms.SiteItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x127\n" +
|
||||
"\x06Modify\x12\r.cms.SiteItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x06Delete\x12\x1d.base_cms_blocks.IdentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_site_proto_rawDescOnce sync.Once
|
||||
@@ -236,22 +236,22 @@ var file_module_base_cms_proto_site_proto_msgTypes = make([]protoimpl.MessageInf
|
||||
var file_module_base_cms_proto_site_proto_goTypes = []any{
|
||||
(*SiteListReply)(nil), // 0: cms.SiteListReply
|
||||
(*SiteItem)(nil), // 1: cms.SiteItem
|
||||
(*Empty)(nil), // 2: blocks.Empty
|
||||
(*IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 4: blocks.StatusReply
|
||||
(*Empty)(nil), // 2: base_cms_blocks.Empty
|
||||
(*IdentRequest)(nil), // 3: base_cms_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 4: base_cms_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cms_proto_site_proto_depIdxs = []int32{
|
||||
1, // 0: cms.SiteListReply.data:type_name -> cms.SiteItem
|
||||
2, // 1: cms.Site.Fetch:input_type -> blocks.Empty
|
||||
3, // 2: cms.Site.Get:input_type -> blocks.IdentRequest
|
||||
2, // 1: cms.Site.Fetch:input_type -> base_cms_blocks.Empty
|
||||
3, // 2: cms.Site.Get:input_type -> base_cms_blocks.IdentRequest
|
||||
1, // 3: cms.Site.Create:input_type -> cms.SiteItem
|
||||
1, // 4: cms.Site.Modify:input_type -> cms.SiteItem
|
||||
3, // 5: cms.Site.Delete:input_type -> blocks.IdentRequest
|
||||
3, // 5: cms.Site.Delete:input_type -> base_cms_blocks.IdentRequest
|
||||
0, // 6: cms.Site.Fetch:output_type -> cms.SiteListReply
|
||||
1, // 7: cms.Site.Get:output_type -> cms.SiteItem
|
||||
4, // 8: cms.Site.Create:output_type -> blocks.StatusReply
|
||||
4, // 9: cms.Site.Modify:output_type -> blocks.StatusReply
|
||||
4, // 10: cms.Site.Delete:output_type -> blocks.StatusReply
|
||||
4, // 8: cms.Site.Create:output_type -> base_cms_blocks.StatusReply
|
||||
4, // 9: cms.Site.Modify:output_type -> base_cms_blocks.StatusReply
|
||||
4, // 10: cms.Site.Delete:output_type -> base_cms_blocks.StatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -78,15 +78,15 @@ var File_module_base_cms_proto_tags_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_cms_proto_tags_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
" module/base/cms/proto/tags.proto\x12\x03cms\x1a!module/base/cms/proto/const.proto\"N\n" +
|
||||
"\rTagsListReply\x12'\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x13.blocks.CmsTagsItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\xde\x01\n" +
|
||||
"\x04Tags\x123\n" +
|
||||
"\x05Fetch\x12\x14.blocks.IdentRequest\x1a\x12.cms.TagsListReply\"\x00\x124\n" +
|
||||
"\x06Create\x12\x13.blocks.CmsTagsItem\x1a\x13.blocks.StatusReply\"\x00\x124\n" +
|
||||
"\x06Modify\x12\x13.blocks.CmsTagsItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
" module/base/cms/proto/tags.proto\x12\x03cms\x1a!module/base/cms/proto/const.proto\"W\n" +
|
||||
"\rTagsListReply\x120\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x1c.base_cms_blocks.CmsTagsItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\x9d\x02\n" +
|
||||
"\x04Tags\x12<\n" +
|
||||
"\x05Fetch\x12\x1d.base_cms_blocks.IdentRequest\x1a\x12.cms.TagsListReply\"\x00\x12F\n" +
|
||||
"\x06Create\x12\x1c.base_cms_blocks.CmsTagsItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\x06Modify\x12\x1c.base_cms_blocks.CmsTagsItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12G\n" +
|
||||
"\x06Delete\x12\x1d.base_cms_blocks.IdentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_cms_proto_tags_proto_rawDescOnce sync.Once
|
||||
@@ -103,20 +103,20 @@ func file_module_base_cms_proto_tags_proto_rawDescGZIP() []byte {
|
||||
var file_module_base_cms_proto_tags_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_module_base_cms_proto_tags_proto_goTypes = []any{
|
||||
(*TagsListReply)(nil), // 0: cms.TagsListReply
|
||||
(*CmsTagsItem)(nil), // 1: blocks.CmsTagsItem
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 3: blocks.StatusReply
|
||||
(*CmsTagsItem)(nil), // 1: base_cms_blocks.CmsTagsItem
|
||||
(*IdentRequest)(nil), // 2: base_cms_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 3: base_cms_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_cms_proto_tags_proto_depIdxs = []int32{
|
||||
1, // 0: cms.TagsListReply.data:type_name -> blocks.CmsTagsItem
|
||||
2, // 1: cms.Tags.Fetch:input_type -> blocks.IdentRequest
|
||||
1, // 2: cms.Tags.Create:input_type -> blocks.CmsTagsItem
|
||||
1, // 3: cms.Tags.Modify:input_type -> blocks.CmsTagsItem
|
||||
2, // 4: cms.Tags.Delete:input_type -> blocks.IdentRequest
|
||||
1, // 0: cms.TagsListReply.data:type_name -> base_cms_blocks.CmsTagsItem
|
||||
2, // 1: cms.Tags.Fetch:input_type -> base_cms_blocks.IdentRequest
|
||||
1, // 2: cms.Tags.Create:input_type -> base_cms_blocks.CmsTagsItem
|
||||
1, // 3: cms.Tags.Modify:input_type -> base_cms_blocks.CmsTagsItem
|
||||
2, // 4: cms.Tags.Delete:input_type -> base_cms_blocks.IdentRequest
|
||||
0, // 5: cms.Tags.Fetch:output_type -> cms.TagsListReply
|
||||
3, // 6: cms.Tags.Create:output_type -> blocks.StatusReply
|
||||
3, // 7: cms.Tags.Modify:output_type -> blocks.StatusReply
|
||||
3, // 8: cms.Tags.Delete:output_type -> blocks.StatusReply
|
||||
3, // 6: cms.Tags.Create:output_type -> base_cms_blocks.StatusReply
|
||||
3, // 7: cms.Tags.Modify:output_type -> base_cms_blocks.StatusReply
|
||||
3, // 8: cms.Tags.Delete:output_type -> base_cms_blocks.StatusReply
|
||||
5, // [5:9] is the sub-list for method output_type
|
||||
1, // [1:5] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -6,22 +6,22 @@ import "module/base/cms/proto/const.proto";
|
||||
// CMS - 分类
|
||||
service Category {
|
||||
// 分类列表
|
||||
rpc Fetch (blocks.IdentRequest) returns (CategoryListReply) {};
|
||||
rpc Fetch (base_cms_blocks.IdentRequest) returns (CategoryListReply) {};
|
||||
|
||||
// 添加分类
|
||||
rpc Create (blocks.CmsCategoryItem) returns (blocks.StatusReply) {};
|
||||
rpc Create (base_cms_blocks.CmsCategoryItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 修改分类
|
||||
rpc Modify (ModifyCategoryRequest) returns (blocks.StatusReply) {};
|
||||
rpc Modify (ModifyCategoryRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 删除分类
|
||||
rpc Delete (DeleteCategoryRequest) returns (blocks.StatusReply) {};
|
||||
rpc Delete (DeleteCategoryRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 分类列表
|
||||
message CategoryListReply {
|
||||
// 数据
|
||||
repeated blocks.CmsCategoryItem data = 1;
|
||||
repeated base_cms_blocks.CmsCategoryItem data = 1;
|
||||
// 总数
|
||||
int64 count = 2;
|
||||
}
|
||||
@@ -41,7 +41,7 @@ message AddCategoryRequest{
|
||||
string intro = 6; // 简介
|
||||
string created_at = 7 [json_name = "created_at"]; // 创建时间
|
||||
string updated_at = 8 [json_name = "updated_at"]; // 更新时间
|
||||
repeated blocks.CmsCategoryItem data = 9; // 子集
|
||||
repeated base_cms_blocks.CmsCategoryItem data = 9; // 子集
|
||||
}
|
||||
|
||||
// 修改分类请求
|
||||
@@ -54,7 +54,7 @@ message ModifyCategoryRequest{
|
||||
string intro = 6; // 简介
|
||||
string created_at = 7 [json_name = "created_at"]; // 创建时间
|
||||
string updated_at = 8 [json_name = "updated_at"]; // 更新时间
|
||||
repeated blocks.CmsCategoryItem data = 9; // 子集
|
||||
repeated base_cms_blocks.CmsCategoryItem data = 9; // 子集
|
||||
string category_key = 10[json_name = "category_key"]; // 分类标识
|
||||
|
||||
}
|
||||
@@ -68,4 +68,4 @@ message DeleteCategoryRequest{
|
||||
message KeywordRequest{
|
||||
string keyword = 1; // 关键字
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_cms_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/cms/pb;cms";
|
||||
|
||||
|
||||
@@ -15,13 +15,13 @@ service Pages{
|
||||
rpc GetByKey (GetPagesByKeyRequest) returns (PagesItem) {};
|
||||
|
||||
//发布单页
|
||||
rpc Create(PagesItem) returns (blocks.StatusReply) {};
|
||||
rpc Create(PagesItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//修改单页
|
||||
rpc Modify(PagesItem) returns (blocks.StatusReply) {};
|
||||
rpc Modify(PagesItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//删除单页
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.StatusReply) {};
|
||||
rpc Delete(base_cms_blocks.IdentRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 根据KEY获取内容请求
|
||||
@@ -45,8 +45,8 @@ message PagesItem{
|
||||
bool has_accessory = 12 [json_name = "has_accessory"]; //是否有附件,默认没有
|
||||
|
||||
repeated string accessory_identity_array = 13 [json_name = "accessory_identity_array"]; //附件Identity 列表
|
||||
repeated blocks.CmsAccessoryItem accessory_data = 14 [json_name = "accessory_data"]; //附件数据
|
||||
repeated blocks.CmsTagsItem tags_data = 15 [json_name = "tags_data"]; // 标签数据
|
||||
repeated base_cms_blocks.CmsAccessoryItem accessory_data = 14 [json_name = "accessory_data"]; //附件数据
|
||||
repeated base_cms_blocks.CmsTagsItem tags_data = 15 [json_name = "tags_data"]; // 标签数据
|
||||
repeated string tags_identity_array = 16 [json_name = "tags_identity_array"]; // 标签集Identity 列表
|
||||
int64 hits = 17; //点击量
|
||||
}
|
||||
|
||||
@@ -15,52 +15,52 @@ service Post{
|
||||
rpc GetByKey (GetPostByKeyRequest) returns (PostItem) {};
|
||||
|
||||
//搜索文章
|
||||
rpc Search (blocks.CmsSearchRequest) returns (PostListReply) {};
|
||||
rpc Search (base_cms_blocks.CmsSearchRequest) returns (PostListReply) {};
|
||||
|
||||
//发布文章
|
||||
rpc Create(PostItem) returns (blocks.StatusReply) {};
|
||||
rpc Create(PostItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//修改文章
|
||||
rpc Modify(PostItem) returns (blocks.StatusReply) {};
|
||||
rpc Modify(PostItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//删除文章
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.StatusReply) {};
|
||||
rpc Delete(base_cms_blocks.IdentRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 文章点赞处理
|
||||
rpc IncrPostLike(PostOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc IncrPostLike(PostOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 文章点赞取消处理
|
||||
rpc DescPostLike(PostOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc DescPostLike(PostOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 文章点踩处理
|
||||
rpc IncrPostUnlike(PostOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc IncrPostUnlike(PostOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 文章点踩取消处理
|
||||
rpc DescPostUnlike(PostOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc DescPostUnlike(PostOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//评论列表
|
||||
rpc CommentList(CommentListRequest) returns (CommentListResponse) {};
|
||||
|
||||
//发布评论
|
||||
rpc AddComment(CommentItem) returns (blocks.StatusReply) {};
|
||||
rpc AddComment(CommentItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//修改评论
|
||||
rpc ModifyComment(CommentItem) returns (blocks.StatusReply) {};
|
||||
rpc ModifyComment(CommentItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//删除评论
|
||||
rpc DeleteComment(DeleteCommentRequest) returns (blocks.StatusReply) {};
|
||||
rpc DeleteComment(DeleteCommentRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 评论点赞处理
|
||||
rpc IncrCommentLike(CommentOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc IncrCommentLike(CommentOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 评论点赞取消处理
|
||||
rpc DescCommentLike(CommentOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc DescCommentLike(CommentOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 评论点踩处理
|
||||
rpc IncrCommentUnlike(CommentOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc IncrCommentUnlike(CommentOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 评论点踩取消处理
|
||||
rpc DescCommentUnlike(CommentOpIdentityRequest) returns (blocks.StatusReply) {};
|
||||
rpc DescCommentUnlike(CommentOpIdentityRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 删除评论
|
||||
@@ -103,9 +103,9 @@ message PostItem{
|
||||
string key = 25; // content key
|
||||
|
||||
|
||||
repeated blocks.CmsCategoryItem category_data = 26 [json_name = "category_data"]; // 分类数据
|
||||
repeated blocks.CmsTagsItem tags_data = 27 [json_name = "tags_data"]; // 标签数据
|
||||
repeated blocks.CmsAccessoryItem accessory_data = 28 [json_name = "accessory_data"]; //附件数据
|
||||
repeated base_cms_blocks.CmsCategoryItem category_data = 26 [json_name = "category_data"]; // 分类数据
|
||||
repeated base_cms_blocks.CmsTagsItem tags_data = 27 [json_name = "tags_data"]; // 标签数据
|
||||
repeated base_cms_blocks.CmsAccessoryItem accessory_data = 28 [json_name = "accessory_data"]; //附件数据
|
||||
|
||||
string lang = 29 [json_name = "lang"]; // 语言
|
||||
string source_origin = 30 [json_name = "source_origin"]; // 来源方简称
|
||||
@@ -184,4 +184,4 @@ message PostOpIdentityRequest{
|
||||
message CommentOpIdentityRequest{
|
||||
string comment_identity = 1 [json_name = "comment_identity"]; //必填 评论唯一标识
|
||||
string op_identity = 2 [json_name = "op_identity"]; //必填 操作者唯一标识
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,19 +6,19 @@ import "module/base/cms/proto/const.proto";
|
||||
// CMS - 站点
|
||||
service Site {
|
||||
// 站点列表
|
||||
rpc Fetch (blocks.Empty) returns (SiteListReply) {};
|
||||
rpc Fetch (base_cms_blocks.Empty) returns (SiteListReply) {};
|
||||
|
||||
// 站点详情
|
||||
rpc Get (blocks.IdentRequest) returns (SiteItem) {};
|
||||
rpc Get (base_cms_blocks.IdentRequest) returns (SiteItem) {};
|
||||
|
||||
// 添加站点
|
||||
rpc Create (SiteItem) returns (blocks.StatusReply) {};
|
||||
rpc Create (SiteItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 修改站点
|
||||
rpc Modify (SiteItem) returns (blocks.StatusReply) {};
|
||||
rpc Modify (SiteItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
// 删除站点
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.StatusReply) {};
|
||||
rpc Delete (base_cms_blocks.IdentRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 站点列表
|
||||
@@ -41,4 +41,4 @@ message SiteItem{
|
||||
string seo = 8; // SEO
|
||||
string theme = 9; // 站点主题
|
||||
string configs = 10; // 站点配置
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,20 +6,20 @@ import "module/base/cms/proto/const.proto";
|
||||
// 标签
|
||||
service Tags {
|
||||
//标签列表
|
||||
rpc Fetch (blocks.IdentRequest) returns (TagsListReply) {};
|
||||
rpc Fetch (base_cms_blocks.IdentRequest) returns (TagsListReply) {};
|
||||
|
||||
//创建标签
|
||||
rpc Create(blocks.CmsTagsItem) returns (blocks.StatusReply) {};
|
||||
rpc Create(base_cms_blocks.CmsTagsItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//修改标签
|
||||
rpc Modify(blocks.CmsTagsItem) returns (blocks.StatusReply) {};
|
||||
rpc Modify(base_cms_blocks.CmsTagsItem) returns (base_cms_blocks.StatusReply) {};
|
||||
|
||||
//删除标签
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.StatusReply) {};
|
||||
rpc Delete(base_cms_blocks.IdentRequest) returns (base_cms_blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 标签列表
|
||||
message TagsListReply {
|
||||
repeated blocks.CmsTagsItem data = 1; // 数据
|
||||
repeated base_cms_blocks.CmsTagsItem data = 1; // 数据
|
||||
int64 count = 2; // 总数
|
||||
}
|
||||
}
|
||||
|
||||
37
module/base/cms/service/expose.go
Normal file
37
module/base/cms/service/expose.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/cms/internal/server"
|
||||
pb "bsm/full/module/base/cms/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterCategoryHandlerServer(ctx, options.Gateway, server.NewCategoryServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterPagesHandlerServer(ctx, options.Gateway, server.NewPagesServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterPostHandlerServer(ctx, options.Gateway, server.NewPostServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterSiteHandlerServer(ctx, options.Gateway, server.NewSiteServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterTagsHandlerServer(ctx, options.Gateway, server.NewTagsServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
* @Description: 反馈服务主程序入口
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/feedback/internal/config"
|
||||
@@ -25,7 +25,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化服务
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
&service.Options{
|
||||
|
||||
@@ -17,17 +17,24 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
// register service to grpc.Server
|
||||
pb.RegisterMethodServer(srv.Grpc, NewMethodServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2855,12 +2855,12 @@ var File_module_base_feedback_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"&module/base/feedback/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"&module/base/feedback/proto/const.proto\x12\x14base_feedback_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc9\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12F\n" +
|
||||
"\x06params\x18\x03 \x03(\v2..base_feedback_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"*\n" +
|
||||
@@ -2871,11 +2871,11 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x84\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12J\n" +
|
||||
"\x06params\x18\x03 \x03(\v22.base_feedback_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -2885,11 +2885,11 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbd\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12L\n" +
|
||||
"\x06params\x18\x03 \x03(\v24.base_feedback_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -2944,7 +2944,7 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xee\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -2960,9 +2960,9 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x12;\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2%.base_feedback_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3001,7 +3001,7 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xda\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3037,8 +3037,8 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12<\n" +
|
||||
"\adetails\x18! \x03(\v2\".base_feedback_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3068,10 +3068,10 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"]\n" +
|
||||
"\x11FeedPostListReply\x126\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\".base_feedback_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xed\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3082,10 +3082,10 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12>\n" +
|
||||
"\aattachs\x18\t \x03(\v2$.base_feedback_blocks.FeedAttachItemR\aattachs\x125\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2!.base_feedback_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3093,10 +3093,10 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"_\n" +
|
||||
"\x12GroupPostListReply\x127\n" +
|
||||
"\x04list\x18\x01 \x03(\v2#.base_feedback_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\x80\x03\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3108,10 +3108,10 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12?\n" +
|
||||
"\aattachs\x18\t \x03(\v2%.base_feedback_blocks.GroupAttachItemR\aattachs\x126\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\".base_feedback_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3135,10 +3135,10 @@ const file_module_base_feedback_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"f\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB+Z)bsm/full/module/base/feedback/pb;feedbackb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x126\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\".base_feedback_blocks.RelationItemR\x04dataB+Z)bsm/full/module/base/feedback/pb;feedbackb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_feedback_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3154,58 +3154,58 @@ func file_module_base_feedback_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_feedback_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
|
||||
var file_module_base_feedback_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*VersionRequest)(nil), // 2: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 3: blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 4: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 5: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 6: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 7: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 8: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 9: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 10: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 11: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 12: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 13: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 14: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 15: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 16: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 17: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 18: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 19: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 20: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 21: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 22: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 23: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 24: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 25: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 26: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 27: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 28: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 29: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 30: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 31: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 32: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 33: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 34: blocks.FetchRelationItemReply
|
||||
nil, // 35: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 36: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 37: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_feedback_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_feedback_blocks.FetchRequest
|
||||
(*VersionRequest)(nil), // 2: base_feedback_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 3: base_feedback_blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 4: base_feedback_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 5: base_feedback_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 6: base_feedback_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 7: base_feedback_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 8: base_feedback_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 9: base_feedback_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 10: base_feedback_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 11: base_feedback_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 12: base_feedback_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 13: base_feedback_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 14: base_feedback_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 15: base_feedback_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 16: base_feedback_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 17: base_feedback_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 18: base_feedback_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 19: base_feedback_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 20: base_feedback_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 21: base_feedback_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 22: base_feedback_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 23: base_feedback_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 24: base_feedback_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 25: base_feedback_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 26: base_feedback_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 27: base_feedback_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 28: base_feedback_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 29: base_feedback_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 30: base_feedback_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 31: base_feedback_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 32: base_feedback_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 33: base_feedback_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 34: base_feedback_blocks.FetchRelationItemReply
|
||||
nil, // 35: base_feedback_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 36: base_feedback_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 37: base_feedback_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_feedback_proto_const_proto_depIdxs = []int32{
|
||||
35, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
36, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
37, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
18, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
24, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
26, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
27, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
28, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
30, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
31, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
32, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
33, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
35, // 0: base_feedback_blocks.FetchRequest.params:type_name -> base_feedback_blocks.FetchRequest.ParamsEntry
|
||||
36, // 1: base_feedback_blocks.MallFetchRequest.params:type_name -> base_feedback_blocks.MallFetchRequest.ParamsEntry
|
||||
37, // 2: base_feedback_blocks.MarketFetchRequest.params:type_name -> base_feedback_blocks.MarketFetchRequest.ParamsEntry
|
||||
18, // 3: base_feedback_blocks.CmsCategoryItem.child:type_name -> base_feedback_blocks.CmsCategoryItem
|
||||
24, // 4: base_feedback_blocks.OrderSummaryItem.details:type_name -> base_feedback_blocks.OrderDetails
|
||||
26, // 5: base_feedback_blocks.FeedPostListReply.list:type_name -> base_feedback_blocks.FeedPostItem
|
||||
27, // 6: base_feedback_blocks.FeedPostItem.attachs:type_name -> base_feedback_blocks.FeedAttachItem
|
||||
28, // 7: base_feedback_blocks.FeedPostItem.tags:type_name -> base_feedback_blocks.FeedTagItem
|
||||
30, // 8: base_feedback_blocks.GroupPostListReply.list:type_name -> base_feedback_blocks.GroupPostItem
|
||||
31, // 9: base_feedback_blocks.GroupPostItem.attachs:type_name -> base_feedback_blocks.GroupAttachItem
|
||||
32, // 10: base_feedback_blocks.GroupPostItem.tags:type_name -> base_feedback_blocks.GroupTagItem
|
||||
33, // 11: base_feedback_blocks.FetchRelationItemReply.data:type_name -> base_feedback_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_feedback_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/feedback/pb;feedback";
|
||||
|
||||
|
||||
25
module/base/feedback/service/expose.go
Normal file
25
module/base/feedback/service/expose.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/feedback/internal/server"
|
||||
pb "bsm/full/module/base/feedback/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterMethodHandlerServer(ctx, options.Gateway, server.NewMethodServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
11
module/base/fts/service/expose.go
Normal file
11
module/base/fts/service/expose.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/fts/internal/routers"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Expose(engine *gin.Engine) error {
|
||||
routers.Register("fts", engine)
|
||||
return nil
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/initial/internal/config"
|
||||
@@ -22,7 +22,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 创建 gRPC 服务器,监听指定地址
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
// 创建微服务实例,配置服务参数
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -28,7 +33,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterCheckServer(srv.Grpc, NewCheckServer())
|
||||
pb.RegisterDataServer(srv.Grpc, NewDataServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2810,7 +2810,7 @@ var File_module_base_initial_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"%module/base/initial/proto/const.proto\x12\x06blocks\":\n" +
|
||||
"%module/base/initial/proto/const.proto\x12\x13base_initial_blocks\":\n" +
|
||||
"\fIdentRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" +
|
||||
@@ -2821,11 +2821,11 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x83\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12I\n" +
|
||||
"\x06params\x18\x03 \x03(\v21.base_initial_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -2835,11 +2835,11 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbc\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12K\n" +
|
||||
"\x06params\x18\x03 \x03(\v23.base_initial_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -2894,7 +2894,7 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xed\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -2910,9 +2910,9 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x12:\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2$.base_initial_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -2951,7 +2951,7 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd9\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -2987,8 +2987,8 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12;\n" +
|
||||
"\adetails\x18! \x03(\v2!.base_initial_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3018,10 +3018,10 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"\\\n" +
|
||||
"\x11FeedPostListReply\x125\n" +
|
||||
"\x04list\x18\x01 \x03(\v2!.base_initial_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xeb\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3032,10 +3032,10 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12=\n" +
|
||||
"\aattachs\x18\t \x03(\v2#.base_initial_blocks.FeedAttachItemR\aattachs\x124\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2 .base_initial_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3043,10 +3043,10 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"^\n" +
|
||||
"\x12GroupPostListReply\x126\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\".base_initial_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfe\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3058,10 +3058,10 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12>\n" +
|
||||
"\aattachs\x18\t \x03(\v2$.base_initial_blocks.GroupAttachItemR\aattachs\x125\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2!.base_initial_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3085,10 +3085,10 @@ const file_module_base_initial_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"e\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB)Z'bsm/full/module/base/initial/pb;initialb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x125\n" +
|
||||
"\x04data\x18\x02 \x03(\v2!.base_initial_blocks.RelationItemR\x04dataB)Z'bsm/full/module/base/initial/pb;initialb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_initial_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3104,55 +3104,55 @@ func file_module_base_initial_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_initial_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
|
||||
var file_module_base_initial_proto_const_proto_goTypes = []any{
|
||||
(*IdentRequest)(nil), // 0: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 1: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: blocks.FetchRelationItemReply
|
||||
nil, // 34: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*IdentRequest)(nil), // 0: base_initial_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 1: base_initial_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: base_initial_blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: base_initial_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: base_initial_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: base_initial_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: base_initial_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: base_initial_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: base_initial_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: base_initial_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: base_initial_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: base_initial_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: base_initial_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: base_initial_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: base_initial_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: base_initial_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: base_initial_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: base_initial_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: base_initial_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: base_initial_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: base_initial_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: base_initial_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: base_initial_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: base_initial_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: base_initial_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: base_initial_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: base_initial_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: base_initial_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: base_initial_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: base_initial_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: base_initial_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: base_initial_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: base_initial_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: base_initial_blocks.FetchRelationItemReply
|
||||
nil, // 34: base_initial_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: base_initial_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_initial_proto_const_proto_depIdxs = []int32{
|
||||
34, // 0: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
23, // 3: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
25, // 4: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
26, // 5: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
27, // 6: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
29, // 7: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
30, // 8: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
31, // 9: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
32, // 10: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
34, // 0: base_initial_blocks.MallFetchRequest.params:type_name -> base_initial_blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: base_initial_blocks.MarketFetchRequest.params:type_name -> base_initial_blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: base_initial_blocks.CmsCategoryItem.child:type_name -> base_initial_blocks.CmsCategoryItem
|
||||
23, // 3: base_initial_blocks.OrderSummaryItem.details:type_name -> base_initial_blocks.OrderDetails
|
||||
25, // 4: base_initial_blocks.FeedPostListReply.list:type_name -> base_initial_blocks.FeedPostItem
|
||||
26, // 5: base_initial_blocks.FeedPostItem.attachs:type_name -> base_initial_blocks.FeedAttachItem
|
||||
27, // 6: base_initial_blocks.FeedPostItem.tags:type_name -> base_initial_blocks.FeedTagItem
|
||||
29, // 7: base_initial_blocks.GroupPostListReply.list:type_name -> base_initial_blocks.GroupPostItem
|
||||
30, // 8: base_initial_blocks.GroupPostItem.attachs:type_name -> base_initial_blocks.GroupAttachItem
|
||||
31, // 9: base_initial_blocks.GroupPostItem.tags:type_name -> base_initial_blocks.GroupTagItem
|
||||
32, // 10: base_initial_blocks.FetchRelationItemReply.data:type_name -> base_initial_blocks.RelationItem
|
||||
11, // [11:11] is the sub-list for method output_type
|
||||
11, // [11:11] is the sub-list for method input_type
|
||||
11, // [11:11] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_initial_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/initial/pb;initial";
|
||||
|
||||
|
||||
28
module/base/initial/service/expose.go
Normal file
28
module/base/initial/service/expose.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/initial/internal/server"
|
||||
pb "bsm/full/module/base/initial/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterCheckHandlerServer(ctx, options.Gateway, server.NewCheckServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterDataHandlerServer(ctx, options.Gateway, server.NewDataServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
11
module/base/logs/service/expose.go
Normal file
11
module/base/logs/service/expose.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/logs/internal/routers"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Expose(engine *gin.Engine) error {
|
||||
routers.Register("logs", engine)
|
||||
return nil
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
11
module/base/mgt/service/expose.go
Normal file
11
module/base/mgt/service/expose.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/mgt/internal/routers"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Expose(engine *gin.Engine) error {
|
||||
routers.Register("mgt", engine)
|
||||
return nil
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/passport/internal/config"
|
||||
@@ -20,7 +20,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化服务
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
&service.Options{
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -31,7 +36,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterRegisterServer(srv.Grpc, NewRegisterServer())
|
||||
pb.RegisterVerifyServer(srv.Grpc, NewVerifyServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -538,7 +538,7 @@ var File_module_base_passport_proto_account_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_passport_proto_account_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"(module/base/passport/proto/account.proto\x12\bpassport\x1a&module/base/passport/proto/const.proto\"\x80\x04\n" +
|
||||
"(module/base/passport/proto/account.proto\x12\bpassport\x1a&module/base/passport/proto/const.proto\"\x8e\x04\n" +
|
||||
"\fGetFullReply\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
||||
@@ -557,8 +557,8 @@ const file_module_base_passport_proto_account_proto_rawDesc = "" +
|
||||
"\x04sign\x18\x0e \x01(\tR\x04sign\x12\x14\n" +
|
||||
"\x05cover\x18\x0f \x01(\tR\x05cover\x12\x14\n" +
|
||||
"\x05score\x18\x10 \x01(\x05R\x05score\x12\x14\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x129\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x12G\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\".base_passport_blocks.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x04tags\x18\x13 \x03(\v2\x11.passport.TagItemR\x04tags\"1\n" +
|
||||
"\aTagItem\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
@@ -586,13 +586,13 @@ const file_module_base_passport_proto_account_proto_rawDesc = "" +
|
||||
"\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" +
|
||||
"\tDataEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xf2\x02\n" +
|
||||
"\aAccount\x12.\n" +
|
||||
"\x03Get\x12\r.blocks.Empty\x1a\x16.passport.GetFullReply\"\x00\x12:\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
|
||||
"\tTagRemove\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xc6\x03\n" +
|
||||
"\aAccount\x12<\n" +
|
||||
"\x03Get\x12\x1b.base_passport_blocks.Empty\x1a\x16.passport.GetFullReply\"\x00\x12H\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a!.base_passport_blocks.StatusReply\"\x00\x12P\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a!.base_passport_blocks.StatusReply\"\x00\x12C\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a!.base_passport_blocks.StatusReply\"\x00\x12T\n" +
|
||||
"\tTagRemove\x12\".base_passport_blocks.IdentRequest\x1a!.base_passport_blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\n" +
|
||||
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
@@ -617,26 +617,26 @@ var file_module_base_passport_proto_account_proto_goTypes = []any{
|
||||
(*StatisticsRequest)(nil), // 4: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 5: passport.StatisticsReply
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*VerifyStatus)(nil), // 7: blocks.VerifyStatus
|
||||
(*Empty)(nil), // 8: blocks.Empty
|
||||
(*IdentRequest)(nil), // 9: blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 10: blocks.StatusReply
|
||||
(*VerifyStatus)(nil), // 7: base_passport_blocks.VerifyStatus
|
||||
(*Empty)(nil), // 8: base_passport_blocks.Empty
|
||||
(*IdentRequest)(nil), // 9: base_passport_blocks.IdentRequest
|
||||
(*StatusReply)(nil), // 10: base_passport_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_passport_proto_account_proto_depIdxs = []int32{
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> base_passport_blocks.VerifyStatus
|
||||
1, // 1: passport.GetFullReply.tags:type_name -> passport.TagItem
|
||||
6, // 2: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
|
||||
8, // 3: passport.Account.Get:input_type -> blocks.Empty
|
||||
8, // 3: passport.Account.Get:input_type -> base_passport_blocks.Empty
|
||||
2, // 4: passport.Account.SetData:input_type -> passport.SetDataRequest
|
||||
3, // 5: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
|
||||
1, // 6: passport.Account.TagCreate:input_type -> passport.TagItem
|
||||
9, // 7: passport.Account.TagRemove:input_type -> blocks.IdentRequest
|
||||
9, // 7: passport.Account.TagRemove:input_type -> base_passport_blocks.IdentRequest
|
||||
4, // 8: passport.Account.Statistics:input_type -> passport.StatisticsRequest
|
||||
0, // 9: passport.Account.Get:output_type -> passport.GetFullReply
|
||||
10, // 10: passport.Account.SetData:output_type -> blocks.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> blocks.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> blocks.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> blocks.StatusReply
|
||||
10, // 10: passport.Account.SetData:output_type -> base_passport_blocks.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> base_passport_blocks.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> base_passport_blocks.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> base_passport_blocks.StatusReply
|
||||
5, // 14: passport.Account.Statistics:output_type -> passport.StatisticsReply
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_base_passport_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"&module/base/passport/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"&module/base/passport/proto/const.proto\x12\x14base_passport_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc9\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12F\n" +
|
||||
"\x06params\x18\x03 \x03(\v2..base_passport_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x84\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12J\n" +
|
||||
"\x06params\x18\x03 \x03(\v22.base_passport_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbd\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12L\n" +
|
||||
"\x06params\x18\x03 \x03(\v24.base_passport_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xee\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x12;\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2%.base_passport_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xda\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12<\n" +
|
||||
"\adetails\x18! \x03(\v2\".base_passport_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"]\n" +
|
||||
"\x11FeedPostListReply\x126\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\".base_passport_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xed\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12>\n" +
|
||||
"\aattachs\x18\t \x03(\v2$.base_passport_blocks.FeedAttachItemR\aattachs\x125\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2!.base_passport_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"_\n" +
|
||||
"\x12GroupPostListReply\x127\n" +
|
||||
"\x04list\x18\x01 \x03(\v2#.base_passport_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\x80\x03\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12?\n" +
|
||||
"\aattachs\x18\t \x03(\v2%.base_passport_blocks.GroupAttachItemR\aattachs\x126\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\".base_passport_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_base_passport_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"f\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x126\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\".base_passport_blocks.RelationItemR\x04dataB+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_passport_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_base_passport_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_passport_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_base_passport_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_passport_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_passport_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: base_passport_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: base_passport_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: base_passport_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: base_passport_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: base_passport_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: base_passport_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: base_passport_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: base_passport_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: base_passport_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: base_passport_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: base_passport_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: base_passport_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: base_passport_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: base_passport_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: base_passport_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: base_passport_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: base_passport_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: base_passport_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: base_passport_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: base_passport_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: base_passport_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: base_passport_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: base_passport_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: base_passport_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: base_passport_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: base_passport_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: base_passport_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: base_passport_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: base_passport_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: base_passport_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: base_passport_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: base_passport_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: base_passport_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: base_passport_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: base_passport_blocks.FetchRelationItemReply
|
||||
nil, // 37: base_passport_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: base_passport_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: base_passport_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_passport_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: base_passport_blocks.FetchRequest.params:type_name -> base_passport_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: base_passport_blocks.MallFetchRequest.params:type_name -> base_passport_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: base_passport_blocks.MarketFetchRequest.params:type_name -> base_passport_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: base_passport_blocks.CmsCategoryItem.child:type_name -> base_passport_blocks.CmsCategoryItem
|
||||
26, // 4: base_passport_blocks.OrderSummaryItem.details:type_name -> base_passport_blocks.OrderDetails
|
||||
28, // 5: base_passport_blocks.FeedPostListReply.list:type_name -> base_passport_blocks.FeedPostItem
|
||||
29, // 6: base_passport_blocks.FeedPostItem.attachs:type_name -> base_passport_blocks.FeedAttachItem
|
||||
30, // 7: base_passport_blocks.FeedPostItem.tags:type_name -> base_passport_blocks.FeedTagItem
|
||||
32, // 8: base_passport_blocks.GroupPostListReply.list:type_name -> base_passport_blocks.GroupPostItem
|
||||
33, // 9: base_passport_blocks.GroupPostItem.attachs:type_name -> base_passport_blocks.GroupAttachItem
|
||||
34, // 10: base_passport_blocks.GroupPostItem.tags:type_name -> base_passport_blocks.GroupTagItem
|
||||
35, // 11: base_passport_blocks.FetchRelationItemReply.data:type_name -> base_passport_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -135,10 +135,10 @@ const file_module_base_passport_proto_forget_proto_rawDesc = "" +
|
||||
"\x04code\x18\x02 \x01(\tR\x04code\"L\n" +
|
||||
"\x12ForgetResetRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword2\x86\x01\n" +
|
||||
"\x06Forget\x12>\n" +
|
||||
"\x06Verify\x12\x1d.passport.ForgetVerifyRequest\x1a\x13.blocks.StatusReply\"\x00\x12<\n" +
|
||||
"\x05Reset\x12\x1c.passport.ForgetResetRequest\x1a\x13.blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword2\xa2\x01\n" +
|
||||
"\x06Forget\x12L\n" +
|
||||
"\x06Verify\x12\x1d.passport.ForgetVerifyRequest\x1a!.base_passport_blocks.StatusReply\"\x00\x12J\n" +
|
||||
"\x05Reset\x12\x1c.passport.ForgetResetRequest\x1a!.base_passport_blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_passport_proto_forget_proto_rawDescOnce sync.Once
|
||||
@@ -156,13 +156,13 @@ var file_module_base_passport_proto_forget_proto_msgTypes = make([]protoimpl.Mes
|
||||
var file_module_base_passport_proto_forget_proto_goTypes = []any{
|
||||
(*ForgetVerifyRequest)(nil), // 0: passport.ForgetVerifyRequest
|
||||
(*ForgetResetRequest)(nil), // 1: passport.ForgetResetRequest
|
||||
(*StatusReply)(nil), // 2: blocks.StatusReply
|
||||
(*StatusReply)(nil), // 2: base_passport_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_passport_proto_forget_proto_depIdxs = []int32{
|
||||
0, // 0: passport.Forget.Verify:input_type -> passport.ForgetVerifyRequest
|
||||
1, // 1: passport.Forget.Reset:input_type -> passport.ForgetResetRequest
|
||||
2, // 2: passport.Forget.Verify:output_type -> blocks.StatusReply
|
||||
2, // 3: passport.Forget.Reset:output_type -> blocks.StatusReply
|
||||
2, // 2: passport.Forget.Verify:output_type -> base_passport_blocks.StatusReply
|
||||
2, // 3: passport.Forget.Reset:output_type -> base_passport_blocks.StatusReply
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
|
||||
@@ -256,14 +256,14 @@ const file_module_base_passport_proto_login_proto_rawDesc = "" +
|
||||
"\tagency_id\x18\x04 \x01(\x03R\bagencyId\x12\x19\n" +
|
||||
"\bstaff_id\x18\x05 \x01(\x03R\astaffId\x12\x1a\n" +
|
||||
"\bowner_id\x18\x06 \x01(\x03R\bowner_id\x12&\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\xfe\x01\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\x8c\x02\n" +
|
||||
"\n" +
|
||||
"LoginReply\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||
"\x05token\x18\x03 \x01(\tR\x05token\x128\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x129\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x12G\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\".base_passport_blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\vExtendEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xc0\x01\n" +
|
||||
@@ -290,11 +290,11 @@ var file_module_base_passport_proto_login_proto_goTypes = []any{
|
||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||
nil, // 3: passport.LoginReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 4: blocks.VerifyStatus
|
||||
(*VerifyStatus)(nil), // 4: base_passport_blocks.VerifyStatus
|
||||
}
|
||||
var file_module_base_passport_proto_login_proto_depIdxs = []int32{
|
||||
3, // 0: passport.LoginReply.extend:type_name -> passport.LoginReply.ExtendEntry
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> base_passport_blocks.VerifyStatus
|
||||
0, // 2: passport.Login.Pwd:input_type -> passport.LoginByPwdRequest
|
||||
1, // 3: passport.Login.Code:input_type -> passport.LoginByCodeRequest
|
||||
1, // 4: passport.Login.Quick:input_type -> passport.LoginByCodeRequest
|
||||
|
||||
@@ -229,13 +229,13 @@ const file_module_base_passport_proto_register_proto_rawDesc = "" +
|
||||
"\bstaff_id\x18\b \x01(\x03R\astaffId\x12\x1a\n" +
|
||||
"\bowner_id\x18\t \x01(\x03R\bowner_id\x12&\n" +
|
||||
"\x0eowner_identity\x18\n" +
|
||||
" \x01(\tR\x0eowner_identity\"\x84\x02\n" +
|
||||
" \x01(\tR\x0eowner_identity\"\x92\x02\n" +
|
||||
"\rRegisterReply\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||
"\x05token\x18\x04 \x01(\tR\x05token\x12;\n" +
|
||||
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x129\n" +
|
||||
"\rverify_status\x18\x06 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x12G\n" +
|
||||
"\rverify_status\x18\x06 \x01(\v2\".base_passport_blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\vExtendEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x85\x01\n" +
|
||||
@@ -260,11 +260,11 @@ var file_module_base_passport_proto_register_proto_goTypes = []any{
|
||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 3: blocks.VerifyStatus
|
||||
(*VerifyStatus)(nil), // 3: base_passport_blocks.VerifyStatus
|
||||
}
|
||||
var file_module_base_passport_proto_register_proto_depIdxs = []int32{
|
||||
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
||||
3, // 1: passport.RegisterReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
3, // 1: passport.RegisterReply.verify_status:type_name -> base_passport_blocks.VerifyStatus
|
||||
0, // 2: passport.Register.Pwd:input_type -> passport.RegisterRequest
|
||||
0, // 3: passport.Register.Code:input_type -> passport.RegisterRequest
|
||||
1, // 4: passport.Register.Pwd:output_type -> passport.RegisterReply
|
||||
|
||||
@@ -452,10 +452,10 @@ const file_module_base_passport_proto_verify_proto_rawDesc = "" +
|
||||
"\x06status\x18\x01 \x01(\tR\x06status\x12\x1e\n" +
|
||||
"\n" +
|
||||
"similarity\x18\x02 \x01(\x02R\n" +
|
||||
"similarity2\x8b\x01\n" +
|
||||
"\x06Verify\x129\n" +
|
||||
"\aRequest\x12\x17.passport.VerifyRequest\x1a\x13.blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\rJumioCallback\x12\x1e.passport.JumioCallbackPayload\x1a\x13.blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
"similarity2\xa7\x01\n" +
|
||||
"\x06Verify\x12G\n" +
|
||||
"\aRequest\x12\x17.passport.VerifyRequest\x1a!.base_passport_blocks.StatusReply\"\x00\x12T\n" +
|
||||
"\rJumioCallback\x12\x1e.passport.JumioCallbackPayload\x1a!.base_passport_blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_passport_proto_verify_proto_rawDescOnce sync.Once
|
||||
@@ -478,7 +478,7 @@ var file_module_base_passport_proto_verify_proto_goTypes = []any{
|
||||
(*PersonalInformation)(nil), // 4: passport.PersonalInformation
|
||||
(*FaceMap)(nil), // 5: passport.FaceMap
|
||||
nil, // 6: passport.VerifyRequest.ArgsEntry
|
||||
(*StatusReply)(nil), // 7: blocks.StatusReply
|
||||
(*StatusReply)(nil), // 7: base_passport_blocks.StatusReply
|
||||
}
|
||||
var file_module_base_passport_proto_verify_proto_depIdxs = []int32{
|
||||
6, // 0: passport.VerifyRequest.args:type_name -> passport.VerifyRequest.ArgsEntry
|
||||
@@ -488,8 +488,8 @@ var file_module_base_passport_proto_verify_proto_depIdxs = []int32{
|
||||
5, // 4: passport.JumioCallbackPayload.face_map:type_name -> passport.FaceMap
|
||||
0, // 5: passport.Verify.Request:input_type -> passport.VerifyRequest
|
||||
1, // 6: passport.Verify.JumioCallback:input_type -> passport.JumioCallbackPayload
|
||||
7, // 7: passport.Verify.Request:output_type -> blocks.StatusReply
|
||||
7, // 8: passport.Verify.JumioCallback:output_type -> blocks.StatusReply
|
||||
7, // 7: passport.Verify.Request:output_type -> base_passport_blocks.StatusReply
|
||||
7, // 8: passport.Verify.JumioCallback:output_type -> base_passport_blocks.StatusReply
|
||||
7, // [7:9] is the sub-list for method output_type
|
||||
5, // [5:7] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
|
||||
@@ -6,19 +6,19 @@ import "module/base/passport/proto/const.proto";
|
||||
// assport通行证模块-帐号数据
|
||||
service Account{
|
||||
// 通过会员所有信息
|
||||
rpc Get(blocks.Empty) returns (GetFullReply) {}
|
||||
rpc Get(base_passport_blocks.Empty) returns (GetFullReply) {}
|
||||
|
||||
// 更新会员的信息数据,字段值为空或是0,将不更新此数据
|
||||
rpc SetData(SetDataRequest) returns (blocks.StatusReply) {}
|
||||
rpc SetData(SetDataRequest) returns (base_passport_blocks.StatusReply) {}
|
||||
|
||||
// 更新会员的密码
|
||||
rpc SetPassword(SetPasswordRequest) returns (blocks.StatusReply) {}
|
||||
rpc SetPassword(SetPasswordRequest) returns (base_passport_blocks.StatusReply) {}
|
||||
|
||||
// 新增标签
|
||||
rpc TagCreate(TagItem) returns (blocks.StatusReply) {}
|
||||
rpc TagCreate(TagItem) returns (base_passport_blocks.StatusReply) {}
|
||||
|
||||
// 删除标签
|
||||
rpc TagRemove(blocks.IdentRequest) returns (blocks.StatusReply) {}
|
||||
rpc TagRemove(base_passport_blocks.IdentRequest) returns (base_passport_blocks.StatusReply) {}
|
||||
|
||||
// 获取会员的相关统计数据
|
||||
rpc Statistics(StatisticsRequest) returns (StatisticsReply) {}
|
||||
@@ -43,7 +43,7 @@ message GetFullReply {
|
||||
string cover = 15; // 背景&封面
|
||||
int32 score = 16; // 积分
|
||||
int32 level = 17; // 等级
|
||||
blocks.VerifyStatus verify_status = 18; // 用户验证状态
|
||||
base_passport_blocks.VerifyStatus verify_status = 18; // 用户验证状态
|
||||
repeated TagItem tags = 19; // 用户标签
|
||||
}
|
||||
|
||||
@@ -79,4 +79,4 @@ message StatisticsRequest {
|
||||
|
||||
message StatisticsReply {
|
||||
map<string,int64> Data=1; //数据以Map格式输出
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_passport_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/passport/pb;passport";
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ import "module/base/passport/proto/const.proto";
|
||||
// Passport通行证模块-找回密码
|
||||
service Forget{
|
||||
// 验证手机号和验证码
|
||||
rpc Verify(ForgetVerifyRequest) returns(blocks.StatusReply) {}
|
||||
rpc Verify(ForgetVerifyRequest) returns(base_passport_blocks.StatusReply) {}
|
||||
|
||||
// 重罢密码
|
||||
rpc Reset(ForgetResetRequest) returns (blocks.StatusReply) {}
|
||||
rpc Reset(ForgetResetRequest) returns (base_passport_blocks.StatusReply) {}
|
||||
}
|
||||
|
||||
message ForgetVerifyRequest {
|
||||
@@ -21,4 +21,4 @@ message ForgetVerifyRequest {
|
||||
message ForgetResetRequest {
|
||||
string identity = 1; //唯一码
|
||||
string password = 2; // 密码
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,6 @@ message LoginReply {
|
||||
string identity = 2; //用户唯一码
|
||||
string token = 3; //用户凭证
|
||||
map<string, string> extend = 4; //扩展字段
|
||||
blocks.VerifyStatus verify_status = 5; // 用户验证状态
|
||||
base_passport_blocks.VerifyStatus verify_status = 5; // 用户验证状态
|
||||
}
|
||||
|
||||
|
||||
@@ -31,5 +31,5 @@ message RegisterReply {
|
||||
string identity = 2; //用户唯一码
|
||||
string token = 4; //用户Header所需Token
|
||||
map<string, string> extend = 5; //扩展字段
|
||||
blocks.VerifyStatus verify_status = 6; // 用户验证状态
|
||||
base_passport_blocks.VerifyStatus verify_status = 6; // 用户验证状态
|
||||
}
|
||||
|
||||
@@ -6,10 +6,10 @@ import "module/base/passport/proto/const.proto";
|
||||
// Passport(会员通行证)-验证
|
||||
service Verify{
|
||||
// 认证请求
|
||||
rpc Request(VerifyRequest) returns (blocks.StatusReply) {}
|
||||
rpc Request(VerifyRequest) returns (base_passport_blocks.StatusReply) {}
|
||||
|
||||
// KYC 认证回调
|
||||
rpc JumioCallback(JumioCallbackPayload) returns (blocks.StatusReply) {}
|
||||
rpc JumioCallback(JumioCallbackPayload) returns (base_passport_blocks.StatusReply) {}
|
||||
}
|
||||
|
||||
message VerifyRequest {
|
||||
@@ -51,4 +51,4 @@ message PersonalInformation {
|
||||
message FaceMap {
|
||||
string status = 1;
|
||||
float similarity = 2; // 人脸比对相似度
|
||||
}
|
||||
}
|
||||
|
||||
37
module/base/passport/service/expose.go
Normal file
37
module/base/passport/service/expose.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/passport/internal/server"
|
||||
pb "bsm/full/module/base/passport/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterAccountHandlerServer(ctx, options.Gateway, server.NewAccountServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterForgetHandlerServer(ctx, options.Gateway, server.NewForgetServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterLoginHandlerServer(ctx, options.Gateway, server.NewLoginServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterRegisterHandlerServer(ctx, options.Gateway, server.NewRegisterServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterVerifyHandlerServer(ctx, options.Gateway, server.NewVerifyServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
* @日期: 2021-11-26 15:25:03
|
||||
* @描述: Sender微服务主入口程序,提供邮件和短信发送功能
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/sender/internal/config"
|
||||
@@ -26,7 +26,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化gRPC和HTTP服务器
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
|
||||
// 创建微服务实例
|
||||
srv := service.New(
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -28,7 +33,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterMailServer(srv.Grpc, NewMailServer())
|
||||
pb.RegisterSmsServer(srv.Grpc, NewSmsServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_base_sender_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"$module/base/sender/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"$module/base/sender/proto/const.proto\x12\x12base_sender_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc7\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12D\n" +
|
||||
"\x06params\x18\x03 \x03(\v2,.base_sender_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x82\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12H\n" +
|
||||
"\x06params\x18\x03 \x03(\v20.base_sender_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbb\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12J\n" +
|
||||
"\x06params\x18\x03 \x03(\v22.base_sender_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xec\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x129\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2#.base_sender_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd8\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12:\n" +
|
||||
"\adetails\x18! \x03(\v2 .base_sender_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"[\n" +
|
||||
"\x11FeedPostListReply\x124\n" +
|
||||
"\x04list\x18\x01 \x03(\v2 .base_sender_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe9\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12<\n" +
|
||||
"\aattachs\x18\t \x03(\v2\".base_sender_blocks.FeedAttachItemR\aattachs\x123\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1f.base_sender_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"]\n" +
|
||||
"\x12GroupPostListReply\x125\n" +
|
||||
"\x04list\x18\x01 \x03(\v2!.base_sender_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfc\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12=\n" +
|
||||
"\aattachs\x18\t \x03(\v2#.base_sender_blocks.GroupAttachItemR\aattachs\x124\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2 .base_sender_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_base_sender_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"d\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB'Z%bsm/full/module/base/sender/pb;senderb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x124\n" +
|
||||
"\x04data\x18\x02 \x03(\v2 .base_sender_blocks.RelationItemR\x04dataB'Z%bsm/full/module/base/sender/pb;senderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_base_sender_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_base_sender_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_sender_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_base_sender_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: base_sender_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: base_sender_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: base_sender_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: base_sender_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: base_sender_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: base_sender_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: base_sender_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: base_sender_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: base_sender_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: base_sender_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: base_sender_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: base_sender_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: base_sender_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: base_sender_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: base_sender_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: base_sender_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: base_sender_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: base_sender_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: base_sender_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: base_sender_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: base_sender_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: base_sender_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: base_sender_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: base_sender_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: base_sender_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: base_sender_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: base_sender_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: base_sender_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: base_sender_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: base_sender_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: base_sender_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: base_sender_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: base_sender_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: base_sender_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: base_sender_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: base_sender_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: base_sender_blocks.FetchRelationItemReply
|
||||
nil, // 37: base_sender_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: base_sender_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: base_sender_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_base_sender_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: base_sender_blocks.FetchRequest.params:type_name -> base_sender_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: base_sender_blocks.MallFetchRequest.params:type_name -> base_sender_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: base_sender_blocks.MarketFetchRequest.params:type_name -> base_sender_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: base_sender_blocks.CmsCategoryItem.child:type_name -> base_sender_blocks.CmsCategoryItem
|
||||
26, // 4: base_sender_blocks.OrderSummaryItem.details:type_name -> base_sender_blocks.OrderDetails
|
||||
28, // 5: base_sender_blocks.FeedPostListReply.list:type_name -> base_sender_blocks.FeedPostItem
|
||||
29, // 6: base_sender_blocks.FeedPostItem.attachs:type_name -> base_sender_blocks.FeedAttachItem
|
||||
30, // 7: base_sender_blocks.FeedPostItem.tags:type_name -> base_sender_blocks.FeedTagItem
|
||||
32, // 8: base_sender_blocks.GroupPostListReply.list:type_name -> base_sender_blocks.GroupPostItem
|
||||
33, // 9: base_sender_blocks.GroupPostItem.attachs:type_name -> base_sender_blocks.GroupAttachItem
|
||||
34, // 10: base_sender_blocks.GroupPostItem.tags:type_name -> base_sender_blocks.GroupTagItem
|
||||
35, // 11: base_sender_blocks.FetchRelationItemReply.data:type_name -> base_sender_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package base_sender_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/base/sender/pb;sender";
|
||||
|
||||
|
||||
28
module/base/sender/service/expose.go
Normal file
28
module/base/sender/service/expose.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/sender/internal/server"
|
||||
pb "bsm/full/module/base/sender/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterMailHandlerServer(ctx, options.Gateway, server.NewMailServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterSmsHandlerServer(ctx, options.Gateway, server.NewSmsServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/ec/address/internal/config"
|
||||
@@ -20,7 +20,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化服务
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
&service.Options{
|
||||
|
||||
@@ -17,17 +17,24 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
// register service to grpc.Server
|
||||
pb.RegisterLibraryServer(srv.Grpc, NewLibraryServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2795,7 +2795,7 @@ var File_module_ec_address_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"#module/ec/address/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"#module/ec/address/proto/const.proto\x12\x11ec_address_blocks\"\a\n" +
|
||||
"\x05Empty\"*\n" +
|
||||
"\x0eVersionRequest\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\x03R\aversion\")\n" +
|
||||
@@ -2804,11 +2804,11 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x81\x03\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.ec_address_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -2818,11 +2818,11 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xba\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12I\n" +
|
||||
"\x06params\x18\x03 \x03(\v21.ec_address_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -2877,7 +2877,7 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xeb\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -2893,9 +2893,9 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x128\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2\".ec_address_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -2934,7 +2934,7 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd7\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -2970,8 +2970,8 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x129\n" +
|
||||
"\adetails\x18! \x03(\v2\x1f.ec_address_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3001,10 +3001,10 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"Z\n" +
|
||||
"\x11FeedPostListReply\x123\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1f.ec_address_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe7\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3015,10 +3015,10 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12;\n" +
|
||||
"\aattachs\x18\t \x03(\v2!.ec_address_blocks.FeedAttachItemR\aattachs\x122\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1e.ec_address_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3026,10 +3026,10 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"\\\n" +
|
||||
"\x12GroupPostListReply\x124\n" +
|
||||
"\x04list\x18\x01 \x03(\v2 .ec_address_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfa\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3041,10 +3041,10 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12<\n" +
|
||||
"\aattachs\x18\t \x03(\v2\".ec_address_blocks.GroupAttachItemR\aattachs\x123\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1f.ec_address_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3068,10 +3068,10 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"c\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB'Z%bsm/full/module/ec/address/pb;addressb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x123\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1f.ec_address_blocks.RelationItemR\x04dataB'Z%bsm/full/module/ec/address/pb;addressb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_address_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3087,55 +3087,55 @@ func file_module_ec_address_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_address_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
|
||||
var file_module_ec_address_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*VersionRequest)(nil), // 1: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: blocks.FetchRelationItemReply
|
||||
nil, // 34: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: ec_address_blocks.Empty
|
||||
(*VersionRequest)(nil), // 1: ec_address_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: ec_address_blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: ec_address_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: ec_address_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: ec_address_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: ec_address_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: ec_address_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: ec_address_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: ec_address_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: ec_address_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: ec_address_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: ec_address_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: ec_address_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: ec_address_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: ec_address_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: ec_address_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: ec_address_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: ec_address_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: ec_address_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: ec_address_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: ec_address_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: ec_address_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: ec_address_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: ec_address_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: ec_address_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: ec_address_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: ec_address_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: ec_address_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: ec_address_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: ec_address_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: ec_address_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: ec_address_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: ec_address_blocks.FetchRelationItemReply
|
||||
nil, // 34: ec_address_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: ec_address_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_address_proto_const_proto_depIdxs = []int32{
|
||||
34, // 0: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
23, // 3: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
25, // 4: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
26, // 5: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
27, // 6: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
29, // 7: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
30, // 8: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
31, // 9: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
32, // 10: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
34, // 0: ec_address_blocks.MallFetchRequest.params:type_name -> ec_address_blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: ec_address_blocks.MarketFetchRequest.params:type_name -> ec_address_blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: ec_address_blocks.CmsCategoryItem.child:type_name -> ec_address_blocks.CmsCategoryItem
|
||||
23, // 3: ec_address_blocks.OrderSummaryItem.details:type_name -> ec_address_blocks.OrderDetails
|
||||
25, // 4: ec_address_blocks.FeedPostListReply.list:type_name -> ec_address_blocks.FeedPostItem
|
||||
26, // 5: ec_address_blocks.FeedPostItem.attachs:type_name -> ec_address_blocks.FeedAttachItem
|
||||
27, // 6: ec_address_blocks.FeedPostItem.tags:type_name -> ec_address_blocks.FeedTagItem
|
||||
29, // 7: ec_address_blocks.GroupPostListReply.list:type_name -> ec_address_blocks.GroupPostItem
|
||||
30, // 8: ec_address_blocks.GroupPostItem.attachs:type_name -> ec_address_blocks.GroupAttachItem
|
||||
31, // 9: ec_address_blocks.GroupPostItem.tags:type_name -> ec_address_blocks.GroupTagItem
|
||||
32, // 10: ec_address_blocks.FetchRelationItemReply.data:type_name -> ec_address_blocks.RelationItem
|
||||
11, // [11:11] is the sub-list for method output_type
|
||||
11, // [11:11] is the sub-list for method input_type
|
||||
11, // [11:11] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_address_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/address/pb;address";
|
||||
|
||||
|
||||
25
module/ec/address/service/expose.go
Normal file
25
module/ec/address/service/expose.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/ec/address/internal/server"
|
||||
pb "bsm/full/module/ec/address/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterLibraryHandlerServer(ctx, options.Gateway, server.NewLibraryServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/ec/mall/internal/config"
|
||||
@@ -22,7 +22,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化gRPC服务器
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
// 创建微服务实例
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -33,7 +38,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterStaffServer(srv.Grpc, NewStaffServer())
|
||||
pb.RegisterStoreServer(srv.Grpc, NewStoreServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -247,13 +247,13 @@ const file_module_ec_mall_proto_ads_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\a \x01(\tR\n" +
|
||||
"created_at\x12\x16\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xa0\x02\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xc8\x02\n" +
|
||||
"\x03Ads\x121\n" +
|
||||
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x127\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x126\n" +
|
||||
"\x06Create\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x126\n" +
|
||||
"\x06Modify\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x12?\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x12>\n" +
|
||||
"\x06Create\x12\r.mall.AdsItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12>\n" +
|
||||
"\x06Modify\x12\r.mall.AdsItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_ads_proto_rawDescOnce sync.Once
|
||||
@@ -272,22 +272,22 @@ var file_module_ec_mall_proto_ads_proto_goTypes = []any{
|
||||
(*ByPosRequest)(nil), // 0: mall.ByPosRequest
|
||||
(*AdsListReply)(nil), // 1: mall.AdsListReply
|
||||
(*AdsItem)(nil), // 2: mall.AdsItem
|
||||
(*MallFetchRequest)(nil), // 3: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 5: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 3: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 4: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 5: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_ads_proto_depIdxs = []int32{
|
||||
2, // 0: mall.AdsListReply.data:type_name -> mall.AdsItem
|
||||
0, // 1: mall.Ads.ByPos:input_type -> mall.ByPosRequest
|
||||
3, // 2: mall.Ads.Fetch:input_type -> blocks.MallFetchRequest
|
||||
3, // 2: mall.Ads.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
2, // 3: mall.Ads.Create:input_type -> mall.AdsItem
|
||||
2, // 4: mall.Ads.Modify:input_type -> mall.AdsItem
|
||||
4, // 5: mall.Ads.Delete:input_type -> blocks.IdentRequest
|
||||
4, // 5: mall.Ads.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
1, // 6: mall.Ads.ByPos:output_type -> mall.AdsListReply
|
||||
1, // 7: mall.Ads.Fetch:output_type -> mall.AdsListReply
|
||||
5, // 8: mall.Ads.Create:output_type -> blocks.IdentityStatusReply
|
||||
5, // 9: mall.Ads.Modify:output_type -> blocks.IdentityStatusReply
|
||||
5, // 10: mall.Ads.Delete:output_type -> blocks.IdentityStatusReply
|
||||
5, // 8: mall.Ads.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // 9: mall.Ads.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // 10: mall.Ads.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -312,12 +312,12 @@ const file_module_ec_mall_proto_category_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"categories\x18\f \x03(\v2\x12.mall.CategoryItemR\n" +
|
||||
"categories\x12\x12\n" +
|
||||
"\x04keys\x18\r \x01(\tR\x04keys2\xff\x01\n" +
|
||||
"\x04keys\x18\r \x01(\tR\x04keys2\x9f\x02\n" +
|
||||
"\bCategory\x12:\n" +
|
||||
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x12;\n" +
|
||||
"\x06Create\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12;\n" +
|
||||
"\x06Modify\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x12C\n" +
|
||||
"\x06Create\x12\x12.mall.CategoryItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12C\n" +
|
||||
"\x06Modify\x12\x12.mall.CategoryItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_category_proto_rawDescOnce sync.Once
|
||||
@@ -336,20 +336,20 @@ var file_module_ec_mall_proto_category_proto_goTypes = []any{
|
||||
(*CategoryFetchRequest)(nil), // 0: mall.CategoryFetchRequest
|
||||
(*CategoryReply)(nil), // 1: mall.CategoryReply
|
||||
(*CategoryItem)(nil), // 2: mall.CategoryItem
|
||||
(*IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
(*IdentRequest)(nil), // 3: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_category_proto_depIdxs = []int32{
|
||||
2, // 0: mall.CategoryReply.data:type_name -> mall.CategoryItem
|
||||
2, // 1: mall.CategoryItem.categories:type_name -> mall.CategoryItem
|
||||
0, // 2: mall.Category.Fetch:input_type -> mall.CategoryFetchRequest
|
||||
2, // 3: mall.Category.Create:input_type -> mall.CategoryItem
|
||||
3, // 4: mall.Category.Delete:input_type -> blocks.IdentRequest
|
||||
3, // 4: mall.Category.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
2, // 5: mall.Category.Modify:input_type -> mall.CategoryItem
|
||||
1, // 6: mall.Category.Fetch:output_type -> mall.CategoryReply
|
||||
4, // 7: mall.Category.Create:output_type -> blocks.IdentityStatusReply
|
||||
4, // 8: mall.Category.Delete:output_type -> blocks.IdentityStatusReply
|
||||
4, // 9: mall.Category.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 7: mall.Category.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 8: mall.Category.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 9: mall.Category.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
6, // [6:10] is the sub-list for method output_type
|
||||
2, // [2:6] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_ec_mall_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
" module/ec/mall/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
" module/ec/mall/proto/const.proto\x12\x0eec_mall_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc3\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12@\n" +
|
||||
"\x06params\x18\x03 \x03(\v2(.ec_mall_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xfe\x02\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12D\n" +
|
||||
"\x06params\x18\x03 \x03(\v2,.ec_mall_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb7\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12F\n" +
|
||||
"\x06params\x18\x03 \x03(\v2..ec_mall_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe8\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x125\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2\x1f.ec_mall_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd4\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x126\n" +
|
||||
"\adetails\x18! \x03(\v2\x1c.ec_mall_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"W\n" +
|
||||
"\x11FeedPostListReply\x120\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1c.ec_mall_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe1\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x128\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1e.ec_mall_blocks.FeedAttachItemR\aattachs\x12/\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1b.ec_mall_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Y\n" +
|
||||
"\x12GroupPostListReply\x121\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1d.ec_mall_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf4\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x129\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1f.ec_mall_blocks.GroupAttachItemR\aattachs\x120\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1c.ec_mall_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"`\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x120\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1c.ec_mall_blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_ec_mall_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_mall_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_ec_mall_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: ec_mall_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: ec_mall_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: ec_mall_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: ec_mall_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: ec_mall_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: ec_mall_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: ec_mall_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: ec_mall_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: ec_mall_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: ec_mall_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: ec_mall_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: ec_mall_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: ec_mall_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: ec_mall_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: ec_mall_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: ec_mall_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: ec_mall_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: ec_mall_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: ec_mall_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: ec_mall_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: ec_mall_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: ec_mall_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: ec_mall_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: ec_mall_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: ec_mall_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: ec_mall_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: ec_mall_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: ec_mall_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: ec_mall_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: ec_mall_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: ec_mall_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: ec_mall_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: ec_mall_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: ec_mall_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: ec_mall_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: ec_mall_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: ec_mall_blocks.FetchRelationItemReply
|
||||
nil, // 37: ec_mall_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: ec_mall_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: ec_mall_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_mall_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: ec_mall_blocks.FetchRequest.params:type_name -> ec_mall_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: ec_mall_blocks.MallFetchRequest.params:type_name -> ec_mall_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: ec_mall_blocks.MarketFetchRequest.params:type_name -> ec_mall_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: ec_mall_blocks.CmsCategoryItem.child:type_name -> ec_mall_blocks.CmsCategoryItem
|
||||
26, // 4: ec_mall_blocks.OrderSummaryItem.details:type_name -> ec_mall_blocks.OrderDetails
|
||||
28, // 5: ec_mall_blocks.FeedPostListReply.list:type_name -> ec_mall_blocks.FeedPostItem
|
||||
29, // 6: ec_mall_blocks.FeedPostItem.attachs:type_name -> ec_mall_blocks.FeedAttachItem
|
||||
30, // 7: ec_mall_blocks.FeedPostItem.tags:type_name -> ec_mall_blocks.FeedTagItem
|
||||
32, // 8: ec_mall_blocks.GroupPostListReply.list:type_name -> ec_mall_blocks.GroupPostItem
|
||||
33, // 9: ec_mall_blocks.GroupPostItem.attachs:type_name -> ec_mall_blocks.GroupAttachItem
|
||||
34, // 10: ec_mall_blocks.GroupPostItem.tags:type_name -> ec_mall_blocks.GroupTagItem
|
||||
35, // 11: ec_mall_blocks.FetchRelationItemReply.data:type_name -> ec_mall_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -541,17 +541,17 @@ const file_module_ec_mall_proto_freight_proto_rawDesc = "" +
|
||||
"\x04data\x18\x02 \x03(\v2\x11.mall.FreightItemR\x04data\"Q\n" +
|
||||
"\x0fDenyRegionReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x03R\x05count\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\xcf\x04\n" +
|
||||
"\aFreight\x127\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.FreightReply\"\x00\x12:\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12:\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x123\n" +
|
||||
"\x06Detail\x12\x14.blocks.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12D\n" +
|
||||
"\x0fDenyRegionFetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\xa7\x05\n" +
|
||||
"\aFreight\x12?\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x12.mall.FreightReply\"\x00\x12B\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12B\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12;\n" +
|
||||
"\x06Detail\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12L\n" +
|
||||
"\x0fDenyRegionFetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12O\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12W\n" +
|
||||
"\x10DenyRegionDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12O\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_freight_proto_rawDescOnce sync.Once
|
||||
@@ -573,9 +573,9 @@ var file_module_ec_mall_proto_freight_proto_goTypes = []any{
|
||||
(*FreightAttrItem)(nil), // 3: mall.FreightAttrItem
|
||||
(*FreightReply)(nil), // 4: mall.FreightReply
|
||||
(*DenyRegionReply)(nil), // 5: mall.DenyRegionReply
|
||||
(*MallFetchRequest)(nil), // 6: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 6: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 7: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 8: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_freight_proto_depIdxs = []int32{
|
||||
2, // 0: mall.DenyRegionItem.region:type_name -> mall.RegionItem
|
||||
@@ -584,24 +584,24 @@ var file_module_ec_mall_proto_freight_proto_depIdxs = []int32{
|
||||
2, // 3: mall.FreightAttrItem.region:type_name -> mall.RegionItem
|
||||
1, // 4: mall.FreightReply.data:type_name -> mall.FreightItem
|
||||
0, // 5: mall.DenyRegionReply.data:type_name -> mall.DenyRegionItem
|
||||
6, // 6: mall.Freight.Fetch:input_type -> blocks.MallFetchRequest
|
||||
6, // 6: mall.Freight.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
1, // 7: mall.Freight.Modify:input_type -> mall.FreightItem
|
||||
7, // 8: mall.Freight.Delete:input_type -> blocks.IdentRequest
|
||||
7, // 8: mall.Freight.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
1, // 9: mall.Freight.Create:input_type -> mall.FreightItem
|
||||
7, // 10: mall.Freight.Detail:input_type -> blocks.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> blocks.MallFetchRequest
|
||||
7, // 10: mall.Freight.Detail:input_type -> ec_mall_blocks.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
0, // 12: mall.Freight.DenyRegionCreate:input_type -> mall.DenyRegionItem
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> blocks.IdentRequest
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
0, // 14: mall.Freight.DenyRegionModify:input_type -> mall.DenyRegionItem
|
||||
4, // 15: mall.Freight.Fetch:output_type -> mall.FreightReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> blocks.IdentityStatusReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
1, // 19: mall.Freight.Detail:output_type -> mall.FreightItem
|
||||
5, // 20: mall.Freight.DenyRegionFetch:output_type -> mall.DenyRegionReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> blocks.IdentityStatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
15, // [15:24] is the sub-list for method output_type
|
||||
6, // [6:15] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
|
||||
@@ -194,12 +194,12 @@ const file_module_ec_mall_proto_notice_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\a \x01(\tR\n" +
|
||||
"created_at\x12\x16\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xf9\x01\n" +
|
||||
"\x06Notice\x12:\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x129\n" +
|
||||
"\x06Create\x12\x10.mall.NoticeItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x129\n" +
|
||||
"\x06Modify\x12\x10.mall.NoticeItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xa1\x02\n" +
|
||||
"\x06Notice\x12B\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x12A\n" +
|
||||
"\x06Create\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"\x06Modify\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_notice_proto_rawDescOnce sync.Once
|
||||
@@ -217,20 +217,20 @@ var file_module_ec_mall_proto_notice_proto_msgTypes = make([]protoimpl.MessageIn
|
||||
var file_module_ec_mall_proto_notice_proto_goTypes = []any{
|
||||
(*NoticeListReply)(nil), // 0: mall.NoticeListReply
|
||||
(*NoticeItem)(nil), // 1: mall.NoticeItem
|
||||
(*MallFetchRequest)(nil), // 2: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 2: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 3: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_notice_proto_depIdxs = []int32{
|
||||
1, // 0: mall.NoticeListReply.data:type_name -> mall.NoticeItem
|
||||
2, // 1: mall.Notice.Fetch:input_type -> blocks.MallFetchRequest
|
||||
2, // 1: mall.Notice.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
1, // 2: mall.Notice.Create:input_type -> mall.NoticeItem
|
||||
1, // 3: mall.Notice.Modify:input_type -> mall.NoticeItem
|
||||
3, // 4: mall.Notice.Delete:input_type -> blocks.IdentRequest
|
||||
3, // 4: mall.Notice.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
0, // 5: mall.Notice.Fetch:output_type -> mall.NoticeListReply
|
||||
4, // 6: mall.Notice.Create:output_type -> blocks.IdentityStatusReply
|
||||
4, // 7: mall.Notice.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 8: mall.Notice.Delete:output_type -> blocks.IdentityStatusReply
|
||||
4, // 6: mall.Notice.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 7: mall.Notice.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 8: mall.Notice.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // [5:9] is the sub-list for method output_type
|
||||
1, // [1:5] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user