catalogue_dto

package
v1.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalogue

type Catalogue struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Parent string `json:"parent"`
	Sort   int    `json:"sort"`
}

type CreateCatalogue

type CreateCatalogue struct {
	Id     string  `json:"id"`
	Name   string  `json:"name"`
	Parent *string `json:"parent" aocheck:"catalogue"`
	Sort   *int    `json:"sort"`
}

type EditCatalogue

type EditCatalogue struct {
	Name   *string `json:"name"`
	Parent *string `json:"parent" aocheck:"catalogue"`
	Sort   *int    `json:"sort"`
}

type ExportCatalogue

type ExportCatalogue struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Parent string `json:"parent"`
	Sort   int    `json:"sort"`
}

type Item

type Item struct {
	Id       string  `json:"id"`
	Name     string  `json:"name"`
	Children []*Item `json:"children"`
	Sort     int     `json:"-"`
}

type Partition

type Partition struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Prefix string `json:"prefix"`
}

type ServiceApi

type ServiceApi struct {
	*ServiceApiBasic
	Doc interface{} `json:"doc"`
}

type ServiceApiBasic

type ServiceApiBasic struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Method      string         `json:"method"`
	Path        string         `json:"path"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
}

type ServiceBasic

type ServiceBasic struct {
	Team       auto.Label     `json:"team" aolabel:"team"`
	ApiNum     int            `json:"api_num"`
	AppNum     int            `json:"app_num"`
	Tags       []auto.Label   `json:"tags" aolabel:"tag"`
	Catalogue  auto.Label     `json:"catalogue" aolabel:"catalogue"`
	Version    string         `json:"version"`
	UpdateTime auto.TimeLabel `json:"update_time"`
}

type ServiceDetail

type ServiceDetail struct {
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Document    string        `json:"document"`
	Basic       *ServiceBasic `json:"basic"`
	//Apis        []*ServiceApi `json:"apis"`
	APIDoc string `json:"api_doc"`
}

type ServiceItem

type ServiceItem struct {
	Id            string       `json:"id"`
	Name          string       `json:"name"`
	Tags          []auto.Label `json:"tags" aolabel:"tag"`
	Catalogue     auto.Label   `json:"catalogue" aolabel:"catalogue"`
	Description   string       `json:"description"`
	ApiNum        int64        `json:"api_num"`
	SubscriberNum int64        `json:"subscriber_num"`
}

type SortItem

type SortItem struct {
	Id       string      `json:"id"`
	Children []*SortItem `json:"children"`
}

type SubscribeService

type SubscribeService struct {
	Service      string   `json:"service"`
	Applications []string `json:"applications" aocheck:"project"`
	Reason       string   `json:"reason"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL