From 0a57d5a426b051bc47e7cc8c8c1910f573686021 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Tue, 17 Jan 2023 17:46:33 +0800 Subject: [PATCH] db update --- pkg/common/db/mysql/group_model_k.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/common/db/mysql/group_model_k.go b/pkg/common/db/mysql/group_model_k.go index 6b595136b..eb2af8277 100644 --- a/pkg/common/db/mysql/group_model_k.go +++ b/pkg/common/db/mysql/group_model_k.go @@ -9,12 +9,15 @@ import ( ) type GroupModelInterface interface { + //mysql Create(ctx context.Context, groups []*Group) (err error) Delete(ctx context.Context, groupIDs []string, tx ...*gorm.DB) (err error) UpdateByMap(ctx context.Context, groupID string, args map[string]interface{}) (err error) Update(ctx context.Context, groups []*Group) (err error) Find(ctx context.Context, groupIDs []string) (groups []*Group, err error) Take(ctx context.Context, groupID string) (group *Group, err error) + + //mongo } type Group struct { GroupID string `gorm:"column:group_id;primary_key;size:64" json:"groupID" binding:"required"`