修改
This commit is contained in:
parent
4698331512
commit
503ff1af90
File diff suppressed because it is too large
Load Diff
@ -156,6 +156,8 @@ message UserListRequest{
|
|||||||
int32 auditStatus = 7;
|
int32 auditStatus = 7;
|
||||||
uint64 page = 8;
|
uint64 page = 8;
|
||||||
uint64 pageSize = 9;
|
uint64 pageSize = 9;
|
||||||
|
string blurNameTel = 10;
|
||||||
|
repeated int64 ids = 11;
|
||||||
}
|
}
|
||||||
message UserInfoResponse{
|
message UserInfoResponse{
|
||||||
uint64 id = 1;
|
uint64 id = 1;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-triple v1.0.8
|
// - protoc-gen-go-triple v1.0.8
|
||||||
// - protoc v6.30.0--rc2
|
// - protoc v4.24.0--rc1
|
||||||
// source: api/accountFiee/accountFiee.proto
|
// source: api/accountFiee/accountFiee.proto
|
||||||
|
|
||||||
package accountFiee
|
package accountFiee
|
||||||
@ -35,7 +35,7 @@ type AccountFieeClient interface {
|
|||||||
OnlineLog(ctx context.Context, in *LoginInfosByUserIdRequest, opts ...grpc_go.CallOption) (*LoginLogsResponse, common.ErrorWithAttachment)
|
OnlineLog(ctx context.Context, in *LoginInfosByUserIdRequest, opts ...grpc_go.CallOption) (*LoginLogsResponse, common.ErrorWithAttachment)
|
||||||
OnlineLogById(ctx context.Context, in *OnlineLogByIdRequest, opts ...grpc_go.CallOption) (*LoginLog, common.ErrorWithAttachment)
|
OnlineLogById(ctx context.Context, in *OnlineLogByIdRequest, opts ...grpc_go.CallOption) (*LoginLog, common.ErrorWithAttachment)
|
||||||
CheckPwd(ctx context.Context, in *CheckPwdRequest, opts ...grpc_go.CallOption) (*UpdateResponse, common.ErrorWithAttachment)
|
CheckPwd(ctx context.Context, in *CheckPwdRequest, opts ...grpc_go.CallOption) (*UpdateResponse, common.ErrorWithAttachment)
|
||||||
// rpc RegisterOrExist (RegistRequest) returns (RequestStatus) {}
|
// rpc RegisterOrExist (RegistRequest) returns (RequestStatus) {}
|
||||||
SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
||||||
SendCustomMsg(ctx context.Context, in *SendCustomMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
SendCustomMsg(ctx context.Context, in *SendCustomMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
||||||
SendExCustomMsg(ctx context.Context, in *SendCustomMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
SendExCustomMsg(ctx context.Context, in *SendCustomMsgRequest, opts ...grpc_go.CallOption) (*SendMsgStatusResponse, common.ErrorWithAttachment)
|
||||||
@ -382,7 +382,7 @@ type AccountFieeServer interface {
|
|||||||
OnlineLog(context.Context, *LoginInfosByUserIdRequest) (*LoginLogsResponse, error)
|
OnlineLog(context.Context, *LoginInfosByUserIdRequest) (*LoginLogsResponse, error)
|
||||||
OnlineLogById(context.Context, *OnlineLogByIdRequest) (*LoginLog, error)
|
OnlineLogById(context.Context, *OnlineLogByIdRequest) (*LoginLog, error)
|
||||||
CheckPwd(context.Context, *CheckPwdRequest) (*UpdateResponse, error)
|
CheckPwd(context.Context, *CheckPwdRequest) (*UpdateResponse, error)
|
||||||
// rpc RegisterOrExist (RegistRequest) returns (RequestStatus) {}
|
// rpc RegisterOrExist (RegistRequest) returns (RequestStatus) {}
|
||||||
SendMsg(context.Context, *SendMsgRequest) (*SendMsgStatusResponse, error)
|
SendMsg(context.Context, *SendMsgRequest) (*SendMsgStatusResponse, error)
|
||||||
SendCustomMsg(context.Context, *SendCustomMsgRequest) (*SendMsgStatusResponse, error)
|
SendCustomMsg(context.Context, *SendCustomMsgRequest) (*SendMsgStatusResponse, error)
|
||||||
SendExCustomMsg(context.Context, *SendCustomMsgRequest) (*SendMsgStatusResponse, error)
|
SendExCustomMsg(context.Context, *SendCustomMsgRequest) (*SendMsgStatusResponse, error)
|
||||||
|
@ -650,6 +650,9 @@ func (a *AccountFieeProvider) UserList(ctx context.Context, in *account.UserList
|
|||||||
if in.Domain != "" {
|
if in.Domain != "" {
|
||||||
modelObj.Where("domain = ? ", in.Domain)
|
modelObj.Where("domain = ? ", in.Domain)
|
||||||
}
|
}
|
||||||
|
if len(in.Ids) != 0 {
|
||||||
|
modelObj.Where("user.id in (?) ", in.Ids)
|
||||||
|
}
|
||||||
if in.SubNum != "" {
|
if in.SubNum != "" {
|
||||||
modelObj.Where("sub_num like ? ", "%"+in.SubNum+"%")
|
modelObj.Where("sub_num like ? ", "%"+in.SubNum+"%")
|
||||||
}
|
}
|
||||||
@ -670,6 +673,9 @@ func (a *AccountFieeProvider) UserList(ctx context.Context, in *account.UserList
|
|||||||
if in.Sex != "" {
|
if in.Sex != "" {
|
||||||
modelObj.Where("RealName.sex = ?", in.Sex)
|
modelObj.Where("RealName.sex = ?", in.Sex)
|
||||||
}
|
}
|
||||||
|
if in.BlurNameTel != "" {
|
||||||
|
modelObj.Where("RealName.name like ? or tel_num like ? ", "%"+in.BlurNameTel+"%", "%"+in.BlurNameTel+"%")
|
||||||
|
}
|
||||||
modelObj.Count(&count)
|
modelObj.Count(&count)
|
||||||
if in.Page > 0 && in.PageSize > 0 {
|
if in.Page > 0 && in.PageSize > 0 {
|
||||||
modelObj.Limit(int(in.PageSize)).Offset(page.GetOffset(in.Page, in.PageSize))
|
modelObj.Limit(int(in.PageSize)).Offset(page.GetOffset(in.Page, in.PageSize))
|
||||||
@ -766,8 +772,8 @@ func (a *AccountFieeProvider) GenerateSliderCaptcha(_ context.Context, in *accou
|
|||||||
|
|
||||||
utils.CutByTemplate(canvasImage, blockImage, blockWidth, blockHeight, blockX, blockY)
|
utils.CutByTemplate(canvasImage, blockImage, blockWidth, blockHeight, blockX, blockY)
|
||||||
fmt.Println("1---", 0)
|
fmt.Println("1---", 0)
|
||||||
fmt.Println("2---", blockY)
|
fmt.Println("2---Y", blockY)
|
||||||
fmt.Println("2---", blockX)
|
fmt.Println("2---X", blockX)
|
||||||
|
|
||||||
// 生成UUID
|
// 生成UUID
|
||||||
nonceStr := fmt.Sprintf("%x", rand2.New(rand2.NewSource(time.Now().UnixNano())).Uint64())
|
nonceStr := fmt.Sprintf("%x", rand2.New(rand2.NewSource(time.Now().UnixNano())).Uint64())
|
||||||
|
Loading…
Reference in New Issue
Block a user