mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-10 23:07:30 +08:00
cicd: robot automated Change
This commit is contained in:
parent
5be4fac0ec
commit
54f2ea494f
@ -26,13 +26,13 @@ import (
|
|||||||
"github.com/OpenIMSDK/protocol/constant"
|
"github.com/OpenIMSDK/protocol/constant"
|
||||||
"github.com/OpenIMSDK/tools/discoveryregistry"
|
"github.com/OpenIMSDK/tools/discoveryregistry"
|
||||||
"github.com/OpenIMSDK/tools/log"
|
"github.com/OpenIMSDK/tools/log"
|
||||||
|
|
||||||
"github.com/openimsdk/open-im-server/v3/internal/api"
|
"github.com/openimsdk/open-im-server/v3/internal/api"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/common/cmd"
|
"github.com/openimsdk/open-im-server/v3/pkg/common/cmd"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/common/db/cache"
|
"github.com/openimsdk/open-im-server/v3/pkg/common/db/cache"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
apiCmd := cmd.NewApiCmd()
|
apiCmd := cmd.NewApiCmd()
|
||||||
apiCmd.AddPortFlag()
|
apiCmd.AddPortFlag()
|
||||||
|
|||||||
@ -701,7 +701,14 @@ func (db *commonMsgDatabase) DeleteConversationMsgsAndSetMinSeq(ctx context.Cont
|
|||||||
return db.cache.SetMinSeq(ctx, conversationID, minSeq)
|
return db.cache.SetMinSeq(ctx, conversationID, minSeq)
|
||||||
}
|
}
|
||||||
|
|
||||||
func processMsgDocModel(ctx context.Context, msgDocModel *unrelationtb.MsgDocModel, userID, conversationID string, index int64, destructTime int64, lastMsgDestructTime time.Time) (seqs []int64, over bool) {
|
func processMsgDocModel(
|
||||||
|
ctx context.Context,
|
||||||
|
msgDocModel *unrelationtb.MsgDocModel,
|
||||||
|
userID, conversationID string,
|
||||||
|
index int64,
|
||||||
|
destructTime int64,
|
||||||
|
lastMsgDestructTime time.Time,
|
||||||
|
) (seqs []int64, over bool) {
|
||||||
if len(msgDocModel.Msg) > 0 {
|
if len(msgDocModel.Msg) > 0 {
|
||||||
i := 0
|
i := 0
|
||||||
for _, msg := range msgDocModel.Msg {
|
for _, msg := range msgDocModel.Msg {
|
||||||
@ -823,7 +830,14 @@ func handleFullAndExpiredForDeleteMsgRecursion(ctx context.Context, msgDocModel
|
|||||||
delStruct.minSeq = msgDocModel.Msg[len(msgDocModel.Msg)-1].Msg.Seq
|
delStruct.minSeq = msgDocModel.Msg[len(msgDocModel.Msg)-1].Msg.Seq
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleNotFullAndExpiredForDeleteMsgRecursion(ctx context.Context, msgDocModel *unrelationtb.MsgDocModel, remainTime, index int64, conversationID string, delStruct *delMsgRecursionStruct, db *commonMsgDatabase) {
|
func handleNotFullAndExpiredForDeleteMsgRecursion(
|
||||||
|
ctx context.Context,
|
||||||
|
msgDocModel *unrelationtb.MsgDocModel,
|
||||||
|
remainTime, index int64,
|
||||||
|
conversationID string,
|
||||||
|
delStruct *delMsgRecursionStruct,
|
||||||
|
db *commonMsgDatabase,
|
||||||
|
) {
|
||||||
var delMsgIndexs []int
|
var delMsgIndexs []int
|
||||||
for i, MsgInfoModel := range msgDocModel.Msg {
|
for i, MsgInfoModel := range msgDocModel.Msg {
|
||||||
if MsgInfoModel != nil && MsgInfoModel.Msg != nil {
|
if MsgInfoModel != nil && MsgInfoModel.Msg != nil {
|
||||||
|
|||||||
@ -430,7 +430,13 @@ func (m *Minio) presignedGetObject(ctx context.Context, name string, expire time
|
|||||||
return rawURL.String(), nil
|
return rawURL.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Minio) getImageInfoForAccessURL(ctx context.Context, name string, expire time.Duration, opt *s3.AccessURLOption, reqParams url.Values) (fileInfo *s3.ObjectInfo, objectInfoPath, msg string, err error) {
|
func (m *Minio) getImageInfoForAccessURL(
|
||||||
|
ctx context.Context,
|
||||||
|
name string,
|
||||||
|
expire time.Duration,
|
||||||
|
opt *s3.AccessURLOption,
|
||||||
|
reqParams url.Values,
|
||||||
|
) (fileInfo *s3.ObjectInfo, objectInfoPath, msg string, err error) {
|
||||||
if opt != nil {
|
if opt != nil {
|
||||||
if opt.ContentType != "" {
|
if opt.ContentType != "" {
|
||||||
reqParams.Set("response-content-type", opt.ContentType)
|
reqParams.Set("response-content-type", opt.ContentType)
|
||||||
|
|||||||
@ -30,7 +30,7 @@ type GroupModel struct {
|
|||||||
Introduction string `gorm:"column:introduction;size:255" json:"introduction"`
|
Introduction string `gorm:"column:introduction;size:255" json:"introduction"`
|
||||||
FaceURL string `gorm:"column:face_url;size:255" json:"faceURL"`
|
FaceURL string `gorm:"column:face_url;size:255" json:"faceURL"`
|
||||||
CreateTime time.Time `gorm:"column:create_time;index:create_time;autoCreateTime"`
|
CreateTime time.Time `gorm:"column:create_time;index:create_time;autoCreateTime"`
|
||||||
Ex string `gorm:"column:ex;size:1024" json:"ex"`
|
Ex string `gorm:"column:ex;size:1024" json:"ex"`
|
||||||
Status int32 `gorm:"column:status"`
|
Status int32 `gorm:"column:status"`
|
||||||
CreatorUserID string `gorm:"column:creator_user_id;size:64"`
|
CreatorUserID string `gorm:"column:creator_user_id;size:64"`
|
||||||
GroupType int32 `gorm:"column:group_type"`
|
GroupType int32 `gorm:"column:group_type"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user