12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package model
- import (
- "time"
- "go.mongodb.org/mongo-driver/bson/primitive"
- )
- type FilterTime struct {
- Year int32
- Seasons []int32
- }
- type FilterCategory struct {
- Category1 string
- Category2 []string
- }
- type LibFilter struct {
- Values []string `bson:"values,omitempty" json:"values"`
- CateId string `bson:"cateId,omitempty" json:"cateId"`
- IsAll *bool `bson:"isAll,omitempty" json:"isAll"`
- }
- type MatFilter struct {
- QiyeFrom []string
- YearSeason []*FilterTime
- Category []*FilterCategory
- }
- type TeamResFilter struct {
- ShoeCategoryIds []*LibFilter `bson:"shoeCategoryIds,omitempty" json:"shoeCategoryIds"`
- MatCategoryIds []*LibFilter `bson:"matCategoryIds,omitempty" json:"matCategoryIds"`
- SoleCategoryIds []*LibFilter `bson:"soleCategoryIds,omitempty" json:"soleCategoryIds"`
- HeelCategoryIds []*LibFilter `bson:"heelCategoryIds,omitempty" json:"heelCategoryIds"`
- DecorateCategoryIds []*LibFilter `bson:"decorateCategoryIds,omitempty" json:"decorateCategoryIds"`
- }
- type QiyeRole struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- UserId string `bson:"userId,omitempty" json:"userId"`
- Name string `bson:"name, omitempty" json:"name,omitempty"`
- Perms []string `bson:"perms,omitempty" json:"perms,omitempty"`
- }
- type Team struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
- UserId string `bson:"userId,omitempty" json:"userId,omitempty"`
- Name string `bson:"name" json:"name"`
- UserCount int32 `bson:"userCount" json:"userCount"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime,omitempty"`
- Filter *TeamResFilter `bson:"filters" json:"filters"`
- LeaderId string `bson:"leaderId,omitempty" json:"leaderId,omitempty"`
- }
- type ResCategory struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Type string `bson:"type,omitempty" json:"type"`
- UserId string `bson:"userId,omitempty" json:"userId"`
- Parent string `bson:"parent,omitempty" json:"parent"`
- Name string `bson:"name,omitempty" json:"name"`
- Value string `bson:"value,omitempty" json:"value"`
- Level *int32 `bson:"level,omitempty" json:"level"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- OrderId int64 `bson:"orderId,omitempty" json:"orderId"`
- }
- type LibCategory struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Type string `bson:"type,omitempty" json:"type"`
- UserId string `bson:"userId,omitempty" json:"userId"`
- CategoryIds []string `bson:"categoryIds,omitempty" json:"categoryIds"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
- }
- type Role struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- UserId string `bson:"userId,omitempty" json:"userId"`
- Name string `bson:"name,omitempty" json:"name"`
- Perms []string `bson:"perms,omitempty" json:"perms"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- }
|