service_dto

package
v1.3.0-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Team        auto.Label     `json:"team" aolabel:"team"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	AsApp       bool           `json:"as_app"`
}

type AppItem

type AppItem struct {
	Id                 string         `json:"id"`
	Name               string         `json:"name"`
	Team               auto.Label     `json:"team" aolabel:"team"`
	SubscribeNum       int64          `json:"subscribe_num"`
	SubscribeVerifyNum int64          `json:"subscribe_verify_num"`
	AuthNum            int64          `json:"auth_num"`
	Description        string         `json:"description"`
	CreateTime         auto.TimeLabel `json:"create_time"`
	UpdateTime         auto.TimeLabel `json:"update_time"`
	CanDelete          bool           `json:"can_delete"`
}

type CreateApp

type CreateApp struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CreateService

type CreateService struct {
	Id           string   `json:"id"`
	Name         string   `json:"name"`
	Prefix       string   `json:"prefix"`
	Description  string   `json:"description"`
	ServiceType  string   `json:"service_type"`
	Tags         []string `json:"tags"`
	Catalogue    string   `json:"catalogue"`
	ApprovalType string   `json:"approval_type"`
	Kind         string   `json:"service_kind"`
	Provider     *string  `json:"provider" aocheck:"ai_provider"`
	AsApp        *bool    `json:"as_app"`
	AsServer     *bool    `json:"as_server"`
}

type EditMemberRole

type EditMemberRole struct {
	Roles []string `json:"roles"`
}

type EditProjectMember

type EditProjectMember struct {
	Roles []string `json:"roles" aocheck:"role"`
}

type EditService

type EditService struct {
	Name         *string   `json:"name"`
	Description  *string   `json:"description"`
	ServiceType  *string   `json:"service_type"`
	Catalogue    *string   `json:"catalogue"`
	Tags         *[]string `json:"tags"`
	Provider     *string   `json:"provider" aocheck:"ai_provider"`
	ApprovalType *string   `json:"approval_type"`
}

type ExportApp

type ExportApp struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Team        string `json:"team"`
}

type ExportService

type ExportService struct {
	Id          string   `json:"id"`
	Name        string   `json:"name"`
	Prefix      string   `json:"prefix,omitempty"`
	Description string   `json:"description"`
	Team        string   `json:"team"`
	ServiceType string   `json:"service_type"`
	Catalogue   string   `json:"catalogue"`
	Tags        []string `json:"tags"`
	Doc         string   `json:"doc"`
}

type MemberItem

type MemberItem struct {
	User      auto.Label   `json:"user" aolabel:"user"`
	Email     string       `json:"email"`
	Roles     []auto.Label `json:"roles" aolabel:"role"`
	CanDelete bool         `json:"can_delete"`
}

type SaveServiceDoc

type SaveServiceDoc struct {
	Doc string `json:"doc"`
}

type Service

type Service struct {
	Id           string         `json:"id"`
	Name         string         `json:"name"`
	Prefix       string         `json:"prefix,omitempty"`
	Description  string         `json:"description"`
	Team         auto.Label     `json:"team" aolabel:"team"`
	CreateTime   auto.TimeLabel `json:"create_time"`
	UpdateTime   auto.TimeLabel `json:"update_time"`
	ServiceType  string         `json:"service_type"`
	Catalogue    auto.Label     `json:"catalogue" aolabel:"catalogue"`
	Tags         []auto.Label   `json:"tags" aolabel:"tag"`
	Provider     *auto.Label    `json:"provider,omitempty" aolabel:"ai_provider"`
	ApprovalType string         `json:"approval_type"`
	AsServer     bool           `json:"as_server"`
	AsApp        bool           `json:"as_app"`
	ServiceKind  string         `json:"service_kind"`
}

func ToService

func ToService(model *service.Service) *Service

type ServiceDoc

type ServiceDoc struct {
	Id         string         `json:"id"`
	Name       string         `json:"name"`
	Doc        string         `json:"doc"`
	Creator    auto.Label     `json:"creator" aolabel:"user"`
	CreateTime auto.TimeLabel `json:"create_time"`
	Updater    auto.Label     `json:"updater" aolabel:"user"`
	UpdateTime auto.TimeLabel `json:"update_time"`
}

type ServiceItem

type ServiceItem struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Team        auto.Label     `json:"team" aolabel:"team"`
	ServiceKind string         `json:"service_kind"`
	ApiNum      int64          `json:"api_num"`
	Description string         `json:"description"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	Provider    *auto.Label    `json:"provider,omitempty" aolabel:"ai_provider"`
	CanDelete   bool           `json:"can_delete"`
}

type SimpleAppItem

type SimpleAppItem struct {
	Id          string     `json:"id"`
	Name        string     `json:"name"`
	Team        auto.Label `json:"team" aolabel:"team"`
	Description string     `json:"description"`
}

type SimpleMemberItem

type SimpleMemberItem struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type SimpleServiceItem

type SimpleServiceItem struct {
	Id          string     `json:"id"`
	Name        string     `json:"name"`
	Team        auto.Label `json:"team" aolabel:"team"`
	Description string     `json:"description"`
}

type TeamMemberToAdd

type TeamMemberToAdd struct {
	Id         string     `json:"id,omitempty"`
	Name       string     `json:"name,omitempty"`
	Email      string     `json:"email,omitempty"`
	Department auto.Label `json:"department" aolabel:"department"`
}

type UpdateApp

type UpdateApp struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type Users

type Users struct {
	Users []string `json:"users" aocheck:"user"`
}

Jump to

Keyboard shortcuts

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