修改修改公共beans包路径
This commit is contained in:
@@ -1,9 +1,31 @@
|
||||
package beans
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
type ResponseEmpty struct {
|
||||
}
|
||||
|
||||
type Page struct {
|
||||
PageNum int `p:"pageNum"` //当前页码
|
||||
PageSize int `p:"pageSize"` //每页数
|
||||
Total int //总页数
|
||||
}
|
||||
|
||||
type MongoBaseDO struct {
|
||||
Id bson.ObjectID `bson:"_id,omitempty" json:"id"` // MongoDB 默认 ID
|
||||
Creator interface{} `bson:"creator,omitempty" json:"creator"`
|
||||
CreatedAt time.Time `bson:"createdAt,omitempty" json:"createdAt"`
|
||||
Updater interface{} `bson:"updater,omitempty" json:"updater"`
|
||||
UpdatedAt time.Time `bson:"updatedAt,omitempty" json:"updatedAt"`
|
||||
TenantId interface{} `bson:"tenantId" json:"tenantId" default:"1"` // 租户ID
|
||||
IsDeleted bool `bson:"isDeleted" json:"isDeleted" default:"false"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
UserName interface{} `bson:"userName" json:"userName"` // MongoDB 默认 ID
|
||||
TenantId interface{} `bson:"tenantId" json:"tenantId"` // 租户ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user