邀请码字段类型错误导致的查询问题
This commit is contained in:
parent
8638fa1b7c
commit
3ff4e235a4
@ -1014,7 +1014,7 @@ func GetInviterUserList(in *artistInfoUser.GetInviterUserListRequest) (res *arti
|
|||||||
PageSize: int32(in.PageSize),
|
PageSize: int32(in.PageSize),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
var inviteCodes []int64
|
var inviteCodes []string
|
||||||
db.DB.Model(model.Invite{}).Where("invited_code = ?", in.InvitedCode).Pluck("invite_code", &inviteCodes)
|
db.DB.Model(model.Invite{}).Where("invited_code = ?", in.InvitedCode).Pluck("invite_code", &inviteCodes)
|
||||||
var invitedList []model.User
|
var invitedList []model.User
|
||||||
orm := db.DB.Model(model.User{}).Preload("RealNameInfo").Where("invited_code in ?", inviteCodes) //查询邀请人
|
orm := db.DB.Model(model.User{}).Preload("RealNameInfo").Where("invited_code in ?", inviteCodes) //查询邀请人
|
||||||
|
15
pb/artistinfoStatement.proto
Normal file
15
pb/artistinfoStatement.proto
Normal file
@ -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 {
|
||||||
|
//版权对账
|
||||||
|
|
||||||
|
//物权对账
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user