mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 08:29:33 +08:00 
			
		
		
		
	* fix: to start im or chat, ZooKeeper must be started first. * fix: msg gateway start output err info Signed-off-by: Gordon <1432970085@qq.com> * fix: msg gateway start output err info Signed-off-by: Gordon <1432970085@qq.com> * chore: package path changes Signed-off-by: withchao <993506633@qq.com> * fix: go mod update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * chore: package path changes Signed-off-by: withchao <993506633@qq.com> * chore: package path changes Signed-off-by: withchao <993506633@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: token update Signed-off-by: Gordon <1432970085@qq.com> * fix: get all userID Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: msggateway add online status call Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: log change Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: log change Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * chore: network mode change Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: add api of get server time Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: remove go work sum Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: pull message add isRead field Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: check msg-transfer script Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: script update Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: start don't kill old process Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: check component Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: pull message set isRead only message come from single. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: multiple gateway kick user each other. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add ex field to update group info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change * cicd: robot automated Change * refactor: change project module name. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change project module name. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change project module name. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change * test: for pressure test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: for pressure test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: for pressure test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: message log. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change * fxi: component check output valid info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fxi: component check output valid info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: send message test log. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * cicd: robot automated Change * cicd: robot automated Change * test: remove info log. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: api of send message add sendTime field. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add callback for update user's info. * cicd: robot automated Change * fix: change callback command name. * cicd: robot automated Change * fix: single chat unread status change. * fix: single chat unread status change. * fix: single chat unread status change. * fix: user status change. * cicd: robot automated Change * fix: user status change. * fix: user status change. * fix: user status change. * cicd: robot automated Change * fix: ws close when user logout. --------- Signed-off-by: Gordon <1432970085@qq.com> Signed-off-by: withchao <993506633@qq.com> Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: withchao <993506633@qq.com> Co-authored-by: Xinwei Xiong <3293172751NSS@gmail.com> Co-authored-by: FGadvancer <FGadvancer@users.noreply.github.com>
		
			
				
	
	
		
			92 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package db
 | |
| 
 | |
| import "time"
 | |
| 
 | |
| type Friend struct {
 | |
| 	OwnerUserID    string    `gorm:"column:owner_user_id;primary_key;size:64"`
 | |
| 	FriendUserID   string    `gorm:"column:friend_user_id;primary_key;size:64"`
 | |
| 	Remark         string    `gorm:"column:remark;size:255"`
 | |
| 	CreateTime     time.Time `gorm:"column:create_time"`
 | |
| 	AddSource      int32     `gorm:"column:add_source"`
 | |
| 	OperatorUserID string    `gorm:"column:operator_user_id;size:64"`
 | |
| 	Ex             string    `gorm:"column:ex;size:1024"`
 | |
| }
 | |
| 
 | |
| type FriendRequest struct {
 | |
| 	FromUserID    string    `gorm:"column:from_user_id;primary_key;size:64"`
 | |
| 	ToUserID      string    `gorm:"column:to_user_id;primary_key;size:64"`
 | |
| 	HandleResult  int32     `gorm:"column:handle_result"`
 | |
| 	ReqMsg        string    `gorm:"column:req_msg;size:255"`
 | |
| 	CreateTime    time.Time `gorm:"column:create_time"`
 | |
| 	HandlerUserID string    `gorm:"column:handler_user_id;size:64"`
 | |
| 	HandleMsg     string    `gorm:"column:handle_msg;size:255"`
 | |
| 	HandleTime    time.Time `gorm:"column:handle_time"`
 | |
| 	Ex            string    `gorm:"column:ex;size:1024"`
 | |
| }
 | |
| 
 | |
| func (FriendRequest) TableName() string {
 | |
| 	return "friend_requests"
 | |
| }
 | |
| 
 | |
| type Group struct {
 | |
| 	GroupID                string    `gorm:"column:group_id;primary_key;size:64"  json:"groupID"           binding:"required"`
 | |
| 	GroupName              string    `gorm:"column:name;size:255"                 json:"groupName"`
 | |
| 	Notification           string    `gorm:"column:notification;size:255"         json:"notification"`
 | |
| 	Introduction           string    `gorm:"column:introduction;size:255"         json:"introduction"`
 | |
| 	FaceURL                string    `gorm:"column:face_url;size:255"             json:"faceURL"`
 | |
| 	CreateTime             time.Time `gorm:"column:create_time;index:create_time"`
 | |
| 	Ex                     string    `gorm:"column:ex"                            json:"ex;size:1024"`
 | |
| 	Status                 int32     `gorm:"column:status"`
 | |
| 	CreatorUserID          string    `gorm:"column:creator_user_id;size:64"`
 | |
| 	GroupType              int32     `gorm:"column:group_type"`
 | |
| 	NeedVerification       int32     `gorm:"column:need_verification"`
 | |
| 	LookMemberInfo         int32     `gorm:"column:look_member_info"              json:"lookMemberInfo"`
 | |
| 	ApplyMemberFriend      int32     `gorm:"column:apply_member_friend"           json:"applyMemberFriend"`
 | |
| 	NotificationUpdateTime time.Time `gorm:"column:notification_update_time"`
 | |
| 	NotificationUserID     string    `gorm:"column:notification_user_id;size:64"`
 | |
| }
 | |
| 
 | |
| type GroupMember struct {
 | |
| 	GroupID        string    `gorm:"column:group_id;primary_key;size:64"`
 | |
| 	UserID         string    `gorm:"column:user_id;primary_key;size:64"`
 | |
| 	Nickname       string    `gorm:"column:nickname;size:255"`
 | |
| 	FaceURL        string    `gorm:"column:user_group_face_url;size:255"`
 | |
| 	RoleLevel      int32     `gorm:"column:role_level"`
 | |
| 	JoinTime       time.Time `gorm:"column:join_time"`
 | |
| 	JoinSource     int32     `gorm:"column:join_source"`
 | |
| 	InviterUserID  string    `gorm:"column:inviter_user_id;size:64"`
 | |
| 	OperatorUserID string    `gorm:"column:operator_user_id;size:64"`
 | |
| 	MuteEndTime    time.Time `gorm:"column:mute_end_time"`
 | |
| 	Ex             string    `gorm:"column:ex;size:1024"`
 | |
| }
 | |
| 
 | |
| type GroupRequest struct {
 | |
| 	UserID        string    `gorm:"column:user_id;primary_key;size:64"`
 | |
| 	GroupID       string    `gorm:"column:group_id;primary_key;size:64"`
 | |
| 	HandleResult  int32     `gorm:"column:handle_result"`
 | |
| 	ReqMsg        string    `gorm:"column:req_msg;size:1024"`
 | |
| 	HandledMsg    string    `gorm:"column:handle_msg;size:1024"`
 | |
| 	ReqTime       time.Time `gorm:"column:req_time"`
 | |
| 	HandleUserID  string    `gorm:"column:handle_user_id;size:64"`
 | |
| 	HandledTime   time.Time `gorm:"column:handle_time"`
 | |
| 	JoinSource    int32     `gorm:"column:join_source"`
 | |
| 	InviterUserID string    `gorm:"column:inviter_user_id;size:64"`
 | |
| 	Ex            string    `gorm:"column:ex;size:1024"`
 | |
| }
 | |
| 
 | |
| type User struct {
 | |
| 	UserID           string    `gorm:"column:user_id;primary_key;size:64"`
 | |
| 	Nickname         string    `gorm:"column:name;size:255"`
 | |
| 	FaceURL          string    `gorm:"column:face_url;size:255"`
 | |
| 	Gender           int32     `gorm:"column:gender"`
 | |
| 	PhoneNumber      string    `gorm:"column:phone_number;size:32"`
 | |
| 	Birth            time.Time `gorm:"column:birth"`
 | |
| 	Email            string    `gorm:"column:email;size:64"`
 | |
| 	Ex               string    `gorm:"column:ex;size:1024"`
 | |
| 	CreateTime       time.Time `gorm:"column:create_time;index:create_time"`
 | |
| 	AppMangerLevel   int32     `gorm:"column:app_manger_level"`
 | |
| 	GlobalRecvMsgOpt int32     `gorm:"column:global_recv_msg_opt"`
 | |
| 
 | |
| 	status int32 `gorm:"column:status"`
 | |
| }
 |