team_dto

package
v1.3.4-beta Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 CreateTeam

type CreateTeam struct {
	Id          string `json:"id"`
	Name        string `json:"name" binding:"required"`
	Description string `json:"description"`
	Master      string `json:"master"`
}

type EditTeam

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

type ExportTeam

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

type Item

type Item struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	CanDelete   bool           `json:"can_delete"`
	ServiceNum  int64          `json:"service_num"`
	AppNum      int64          `json:"app_num"`
}

func ToItem

func ToItem(model *team.Team, serviceNum int64, appNum int64) *Item

type Team

type Team struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	CanDelete   bool           `json:"can_delete"`
}

func ToTeam

func ToTeam(model *team.Team, serviceNum int64, appNum int64) *Team

Jump to

Keyboard shortcuts

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