mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 08:29:33 +08:00 
			
		
		
		
	* feat: add openim server code Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim env Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim mongo and redis env Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add zk and redis mongo env Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add kafka and redis mongo env Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim docker Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim docker Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim docker Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim copyright Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * fix: docker compose Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * fix: remove openim chat config file Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim config set Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: add openim config set Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * fix: fix Security vulnerability Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * fix: fix Security vulnerability Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * fix: docker compose Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * Update kubernetes.go * Update discoveryregister.go * fix: copyright-add Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> --------- Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright © 2023 OpenIM. All rights reserved.
 | |
| //
 | |
| // Licensed under the Apache License, Version 2.0 (the "License");
 | |
| // you may not use this file except in compliance with the License.
 | |
| // You may obtain a copy of the License at
 | |
| //
 | |
| //     http://www.apache.org/licenses/LICENSE-2.0
 | |
| //
 | |
| // Unless required by applicable law or agreed to in writing, software
 | |
| // distributed under the License is distributed on an "AS IS" BASIS,
 | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
| // See the License for the specific language governing permissions and
 | |
| // limitations under the License.
 | |
| 
 | |
| package relation
 | |
| 
 | |
| import (
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| type SignalModel struct {
 | |
| 	SID           string    `gorm:"column:sid;type:char(128);primary_key"`
 | |
| 	InviterUserID string    `gorm:"column:inviter_user_id;type:char(64);index:inviter_user_id_index"`
 | |
| 	CustomData    string    `gorm:"column:custom_data;type:text"`
 | |
| 	GroupID       string    `gorm:"column:group_id;type:char(64)"`
 | |
| 	RoomID        string    `gorm:"column:room_id;primary_key;type:char(128)"`
 | |
| 	Timeout       int32     `gorm:"column:timeout"`
 | |
| 	MediaType     string    `gorm:"column:media_type;type:char(64)"`
 | |
| 	PlatformID    int32     `gorm:"column:platform_id"`
 | |
| 	SessionType   int32     `gorm:"column:sesstion_type"`
 | |
| 	InitiateTime  time.Time `gorm:"column:initiate_time"`
 | |
| 	EndTime       time.Time `gorm:"column:end_time"`
 | |
| 	FileURL       string    `gorm:"column:file_url"                                                  json:"-"`
 | |
| 
 | |
| 	Title         string `gorm:"column:title;size:128"`
 | |
| 	Desc          string `gorm:"column:desc;size:1024"`
 | |
| 	Ex            string `gorm:"column:ex;size:1024"`
 | |
| 	IOSPushSound  string `gorm:"column:ios_push_sound"`
 | |
| 	IOSBadgeCount bool   `gorm:"column:ios_badge_count"`
 | |
| 	SignalInfo    string `gorm:"column:signal_info;size:1024"`
 | |
| }
 | |
| 
 | |
| func (SignalModel) TableName() string {
 | |
| 	return "signal"
 | |
| }
 | |
| 
 | |
| type SignalInvitationModel struct {
 | |
| 	UserID       string    `gorm:"column:user_id;primary_key"`
 | |
| 	SID          string    `gorm:"column:sid;type:char(128);primary_key"`
 | |
| 	Status       int32     `gorm:"column:status"`
 | |
| 	InitiateTime time.Time `gorm:"column:initiate_time;primary_key"`
 | |
| 	HandleTime   time.Time `gorm:"column:handle_time"`
 | |
| }
 | |
| 
 | |
| func (SignalInvitationModel) TableName() string {
 | |
| 	return "signal_invitation"
 | |
| }
 |