refactor: code cleanup

This commit is contained in:
Marvin Zhang
2024-10-16 20:13:24 +08:00
parent 785424b1ac
commit eb56598d93
2 changed files with 0 additions and 14 deletions

View File

@@ -76,11 +76,6 @@ func CreateIndexesV2() {
{Keys: bson.M{"name": 1}},
})
// variables
mongo.GetMongoCol(service.GetCollectionNameByInstance(models2.VariableV2{})).MustCreateIndexes([]mongo2.IndexModel{
{Keys: bson.M{"key": 1}},
})
// data sources
mongo.GetMongoCol(service.GetCollectionNameByInstance(models2.DatabaseV2{})).MustCreateIndexes([]mongo2.IndexModel{
{Keys: bson.M{"name": 1}},

View File

@@ -1,9 +0,0 @@
package models
type VariableV2 struct {
any `collection:"variables"`
BaseModelV2[VariableV2] `bson:",inline"`
Key string `json:"key" bson:"key"`
Value string `json:"value" bson:"value"`
Remark string `json:"remark" bson:"remark"`
}