123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- package model
- import "go.mongodb.org/mongo-driver/bson/primitive"
- type AppAssetDef struct {
- Name string
- Desc string
- Type int
- DbId string
- CollectionId string
- }
- type Database3dApp struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Name string `bson:"name,omitempty" json:"name"`
- AppIcon string `bson:"appIcon,omitempty" json:"appIcon"`
- Desc string `bson:"desc,omitempty" json:"desc"`
- HomePageUrl string `bson:"homepageUrl,omitempty" json:"homepageUrl"`
- AuthorizationCallbackUrl string `bson:"authorizedCallbackUrl,omitempty" json:"authorizedCallbackUrl"`
- AppKey string `bson:"appKey,omitempty" json:"appKey"`
- AppSecrete string `bson:"appSecrete,omitempty" json:"appSecrete"`
-
- InputAssetConfs []*AppAssetDef `bson:"inputAssetConfs,omitempty" json:"inputAssetConfs"`
-
- OutputAssetConfs []*AppAssetDef `bson:"outputAssetConfs,omitempty" json:"outputAssetConfs"`
- }
- var Spu3dApp = &Database3dApp{
- InputAssetConfs: []*AppAssetDef{
- &AppAssetDef{
- Name: "盒型",
- DbId: "001",
- CollectionId: "1111",
- }, &AppAssetDef{
- Name: "场景",
- DbId: "001",
- CollectionId: "1111",
- },
- },
- }
- type UserAssetOAuths struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- UserId primitive.ObjectID `bson:"userId,omitempty" json:"userId"`
- AppId primitive.ObjectID `bson:"appId,omitempty" json:"appId"`
- InputAssetConfs []*AppAssetDef `bson:"inputAssetConfs,omitempty" json:"inputAssetConfs"`
- OutputAssetConfs []*AppAssetDef `bson:"outputAssetConfs,omitempty" json:"outputAssetConfs"`
- }
|