From 3ff4e235a4f9901d1b7f81f8edc8e9099780563a Mon Sep 17 00:00:00 2001 From: dorlolo <428192774@qq.com> Date: Wed, 15 Mar 2023 14:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E7=A0=81=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 2 +- pb/artistinfoStatement.proto | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pb/artistinfoStatement.proto diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index a6b451f..702b813 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -1014,7 +1014,7 @@ func GetInviterUserList(in *artistInfoUser.GetInviterUserListRequest) (res *arti PageSize: int32(in.PageSize), }, } - var inviteCodes []int64 + var inviteCodes []string db.DB.Model(model.Invite{}).Where("invited_code = ?", in.InvitedCode).Pluck("invite_code", &inviteCodes) var invitedList []model.User orm := db.DB.Model(model.User{}).Preload("RealNameInfo").Where("invited_code in ?", inviteCodes) //查询邀请人 diff --git a/pb/artistinfoStatement.proto b/pb/artistinfoStatement.proto new file mode 100644 index 0000000..d4c26d9 --- /dev/null +++ b/pb/artistinfoStatement.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package artistinfo; +option go_package = "./;artistinfoArtshow"; + +//import "validate.proto"; +import public "google/protobuf/timestamp.proto"; +// import "google/protobuf/empty.proto"; //使用 google.protobuf.Empty + +// protoc -I . -I ./pb --proto_path=. --go_out=./pb/artistinfoStatement --go-triple_out=./pb/artistinfoStatement --validate_out="lang=go:./pb/artistinfoStatement" ./pb/artistinfoStatement.proto +service Statement { + //版权对账 + + //物权对账 + +} \ No newline at end of file