Compare commits
	
		
			No commits in common. "f41697bcf0004ea3a43fdd229b7c3fbbb795bbd7" and "d9246471d8e2a5caa35aa756527cfd6293d2b264" have entirely different histories.
		
	
	
		
			f41697bcf0
			...
			d9246471d8
		
	
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -184,8 +184,6 @@ 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; | ||||||
|  | |||||||
| @ -525,175 +525,3 @@ func (this *ClockLogListResponse) Validate() error { | |||||||
| func (this *SubmitInfoRequest) Validate() error { | func (this *SubmitInfoRequest) Validate() error { | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
| func (this *CommonMsg) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *ChatRecordData) Validate() error { |  | ||||||
| 	for _, item := range this.Medias { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("Medias", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *CreateChatRecordResp) Validate() error { |  | ||||||
| 	if this.Data != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Data", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *DeleteChatRecordRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatRecordByIdRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatRecordListRequest) Validate() error { |  | ||||||
| 	if this.Query != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Query); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Query", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatRecordListResp) Validate() error { |  | ||||||
| 	for _, item := range this.List { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("List", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *RegisterWaiterRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *RegisterWaiterResp) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *ChatMediaData) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *CreateChatMediaResp) Validate() error { |  | ||||||
| 	if this.Data != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Data", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *DeleteChatMediaRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatMediaByIdRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatMediaListRequest) Validate() error { |  | ||||||
| 	if this.Query != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Query); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Query", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatMediaListResp) Validate() error { |  | ||||||
| 	for _, item := range this.List { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("List", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatUserListRequest2) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *ChatUser2) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatUserListResp2) Validate() error { |  | ||||||
| 	for _, item := range this.List { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("List", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *ChatAutoReplyRulerData) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *CreateChatAutoReplyRulerResp) Validate() error { |  | ||||||
| 	if this.Data != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Data", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *DeleteChatAutoReplyRulerRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatAutoReplyRulerByIdRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatAutoReplyRulerListRequest) Validate() error { |  | ||||||
| 	if this.Query != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Query); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Query", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatAutoReplyRulerListResp) Validate() error { |  | ||||||
| 	for _, item := range this.List { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("List", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *ChatUserData) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *CreateChatUserResp) Validate() error { |  | ||||||
| 	if this.Data != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Data", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *DeleteChatUserRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatUserByIdRequest) Validate() error { |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatUserListRequest) Validate() error { |  | ||||||
| 	if this.Query != nil { |  | ||||||
| 		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Query); err != nil { |  | ||||||
| 			return github_com_mwitkow_go_proto_validators.FieldError("Query", err) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| func (this *GetChatUserListResp) Validate() error { |  | ||||||
| 	for _, item := range this.List { |  | ||||||
| 		if item != nil { |  | ||||||
| 			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { |  | ||||||
| 				return github_com_mwitkow_go_proto_validators.FieldError("List", err) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| // 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             v4.24.0--rc1
 | // - protoc             v4.22.0--rc2
 | ||||||
| // source: api/accountFiee/accountFiee.proto
 | // source: accountFiee.proto
 | ||||||
| 
 | 
 | ||||||
| package accountFiee | package accountFiee | ||||||
| 
 | 
 | ||||||
| @ -70,7 +70,7 @@ type AccountFieeClient interface { | |||||||
| 	VerifySliderStatus(ctx context.Context, in *VerifySliderStatusRequest, opts ...grpc_go.CallOption) (*VerifySliderStatusResponse, common.ErrorWithAttachment) | 	VerifySliderStatus(ctx context.Context, in *VerifySliderStatusRequest, opts ...grpc_go.CallOption) (*VerifySliderStatusResponse, common.ErrorWithAttachment) | ||||||
| 	// submit info
 | 	// submit info
 | ||||||
| 	SaveSubmitInfo(ctx context.Context, in *SubmitInfoRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | 	SaveSubmitInfo(ctx context.Context, in *SubmitInfoRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||||
| 	//-----------------------------客服聊天系统--------------------------------
 | 	// -----------------------------客服聊天系统--------------------------------
 | ||||||
| 	CreateChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CreateChatUserResp, common.ErrorWithAttachment) | 	CreateChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CreateChatUserResp, common.ErrorWithAttachment) | ||||||
| 	UpdateChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CommonMsg, common.ErrorWithAttachment) | 	UpdateChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CommonMsg, common.ErrorWithAttachment) | ||||||
| 	SaveChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CommonMsg, common.ErrorWithAttachment) | 	SaveChatUser(ctx context.Context, in *ChatUserData, opts ...grpc_go.CallOption) (*CommonMsg, common.ErrorWithAttachment) | ||||||
| @ -626,7 +626,7 @@ type AccountFieeServer interface { | |||||||
| 	VerifySliderStatus(context.Context, *VerifySliderStatusRequest) (*VerifySliderStatusResponse, error) | 	VerifySliderStatus(context.Context, *VerifySliderStatusRequest) (*VerifySliderStatusResponse, error) | ||||||
| 	// submit info
 | 	// submit info
 | ||||||
| 	SaveSubmitInfo(context.Context, *SubmitInfoRequest) (*CommonResponse, error) | 	SaveSubmitInfo(context.Context, *SubmitInfoRequest) (*CommonResponse, error) | ||||||
| 	//-----------------------------客服聊天系统--------------------------------
 | 	// -----------------------------客服聊天系统--------------------------------
 | ||||||
| 	CreateChatUser(context.Context, *ChatUserData) (*CreateChatUserResp, error) | 	CreateChatUser(context.Context, *ChatUserData) (*CreateChatUserResp, error) | ||||||
| 	UpdateChatUser(context.Context, *ChatUserData) (*CommonMsg, error) | 	UpdateChatUser(context.Context, *ChatUserData) (*CommonMsg, error) | ||||||
| 	SaveChatUser(context.Context, *ChatUserData) (*CommonMsg, error) | 	SaveChatUser(context.Context, *ChatUserData) (*CommonMsg, error) | ||||||
| @ -3074,5 +3074,5 @@ var AccountFiee_ServiceDesc = grpc_go.ServiceDesc{ | |||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	Streams:  []grpc_go.StreamDesc{}, | 	Streams:  []grpc_go.StreamDesc{}, | ||||||
| 	Metadata: "api/accountFiee/accountFiee.proto", | 	Metadata: "accountFiee.proto", | ||||||
| } | } | ||||||
|  | |||||||
| @ -654,9 +654,6 @@ 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+"%") | ||||||
| 	} | 	} | ||||||
| @ -677,9 +674,6 @@ 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)) | ||||||
| @ -776,8 +770,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---Y", blockY) | 	fmt.Println("2---", blockY) | ||||||
| 	fmt.Println("2---X", blockX) | 	fmt.Println("2---", 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