group update

This commit is contained in:
Gordon
2023-01-28 11:28:11 +08:00
parent 0d3984233b
commit 5af01e4da1
3 changed files with 45 additions and 13 deletions
+2 -2
View File
@@ -36,14 +36,14 @@ type MySqlDatabase struct {
}
func (m *MySqlDatabase) Delete(ctx context.Context, groupIDs []string) error {
panic("implement me")
return m.Delete(ctx, groupIDs)
}
func NewMySqlDatabase(db mysql.GroupModelInterface) DataBase {
return &MySqlDatabase{db}
}
func (m *MySqlDatabase) DeleteTx(ctx context.Context, groupIDs []string) error {
return nil
return m.Delete(ctx, groupIDs)
}
func NewGroupController(groupModel mysql.GroupModelInterface, rdb redis.UniversalClient, mdb *mongo.Client) *GroupController {