Compare commits
	
		
			No commits in common. "4503494fe8d873f366e95899c9a00ee033931974" and "4b7e529b7c9a0999e5b3e068efd04cc0e54df24c" have entirely different histories.
		
	
	
		
			4503494fe8
			...
			4b7e529b7c
		
	
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -967,8 +967,6 @@ message GetChatUserListRequest2{ | |||||||
|   string where=3; |   string where=3; | ||||||
|   string name=4; |   string name=4; | ||||||
|   repeated int64 userIdIn=5; |   repeated int64 userIdIn=5; | ||||||
|   string account=6; |  | ||||||
|   repeated int32 roleIn=7; |  | ||||||
| } | } | ||||||
| message ChatUser2{ | message ChatUser2{ | ||||||
|   int64 userId=1; |   int64 userId=1; | ||||||
|  | |||||||
| @ -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.22.0--rc2
 | // - protoc             v4.24.0--rc1
 | ||||||
| // source: 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) | ||||||
| @ -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) | ||||||
| @ -591,7 +591,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) | ||||||
| @ -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: "accountFiee.proto", | 	Metadata: "api/accountFiee/accountFiee.proto", | ||||||
| } | } | ||||||
|  | |||||||
| @ -8,7 +8,6 @@ package dao | |||||||
| import ( | import ( | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 
 |  | ||||||
| 	"github.com/fonchain_enterprise/micro-account/api/accountFiee" | 	"github.com/fonchain_enterprise/micro-account/api/accountFiee" | ||||||
| 	"github.com/fonchain_enterprise/micro-account/pkg/common/db" | 	"github.com/fonchain_enterprise/micro-account/pkg/common/db" | ||||||
| 	"github.com/fonchain_enterprise/micro-account/pkg/m" | 	"github.com/fonchain_enterprise/micro-account/pkg/m" | ||||||
| @ -244,7 +243,11 @@ func (chatDao) GetChatMediaList(info *accountFiee.GetChatMediaListRequest) (resp | |||||||
| 
 | 
 | ||||||
| // 批量查询ChatMedia
 | // 批量查询ChatMedia
 | ||||||
| func (chatDao) GetChatUserList(req *accountFiee.GetChatUserListRequest2) (resp []*accountFiee.ChatUser2, total int64, err error) { | func (chatDao) GetChatUserList(req *accountFiee.GetChatUserListRequest2) (resp []*accountFiee.ChatUser2, total int64, err error) { | ||||||
| 	var dbQuery = model.DB.Model(&model.User{}) | 	var dbQuery = model.DB.Table(`(SELECT su.id user_id,su.mgmt_artist_uid artist_uid,CASE WHEN su.is_real_name=0 THEN icu.name ELSE rn.name END name,icu.head_img avatar | ||||||
|  | FROM sys_user su  | ||||||
|  | LEFT JOIN real_name rn ON rn.id = su.real_name_id AND rn.deleted_at =0 | ||||||
|  | LEFT JOIN in_circle_user icu ON icu.user_id=su.id AND icu.deleted_at =0 | ||||||
|  | WHERE su.deleted_at = 0) as t`) | ||||||
| 	if req.Where != "" { | 	if req.Where != "" { | ||||||
| 		dbQuery = dbQuery.Where(req.Where) | 		dbQuery = dbQuery.Where(req.Where) | ||||||
| 	} | 	} | ||||||
| @ -254,12 +257,6 @@ func (chatDao) GetChatUserList(req *accountFiee.GetChatUserListRequest2) (resp [ | |||||||
| 	if req.Name != "" { | 	if req.Name != "" { | ||||||
| 		dbQuery = dbQuery.Where(fmt.Sprintf("name like '%%%v%%'", req.Name)) | 		dbQuery = dbQuery.Where(fmt.Sprintf("name like '%%%v%%'", req.Name)) | ||||||
| 	} | 	} | ||||||
| 	if req.Account != "" { |  | ||||||
| 		dbQuery = dbQuery.Where(fmt.Sprintf("account like '%%%v%%'", req.Name)) |  | ||||||
| 	} |  | ||||||
| 	if req.RoleIn != nil { |  | ||||||
| 		dbQuery = dbQuery.Where("role in (?)", req.RoleIn) |  | ||||||
| 	} |  | ||||||
| 	//数据查询
 | 	//数据查询
 | ||||||
| 	dbQuery.Count(&total) | 	dbQuery.Count(&total) | ||||||
| 	err = dbQuery.Scopes(db.Pagination(req.Page, req.PageSize)).Find(&resp).Error | 	err = dbQuery.Scopes(db.Pagination(req.Page, req.PageSize)).Find(&resp).Error | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user