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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditTeam

type EditTeam struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Master      *string `json:"master" aocheck:"user"`
}

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"`
	ServiceNum  int64          `json:"service_num"`
	AppNum      int64          `json:"app_num"`
	CanDelete   bool           `json:"can_delete"`
}

func ToItem

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

type Member

type Member struct {
	User       auto.Label     `json:"user" aolabel:"user"`
	Roles      []auto.Label   `json:"roles" aolabel:"role"`
	AttachTime auto.TimeLabel `json:"attach_time"`
	IsDelete   bool           `json:"is_delete"`
}

func ToMember

func ToMember(model *team_member.Member, userId string, roles ...string) *Member

type SimpleMember

type SimpleMember struct {
	User       auto.Label   `json:"user" aolabel:"user"`
	Mail       string       `json:"mail"`
	Department []auto.Label `json:"department"`
}

type SimpleTeam

type SimpleTeam struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	ServiceNum  int64  `json:"service_num"`
	AppNum      int64  `json:"app_num"`
}

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"`
}

func ToTeam

func ToTeam(model *team.Team) *Team

type UpdateMemberRole

type UpdateMemberRole struct {
	Roles []string `json:"roles" aocheck:"role"`
	Users []string `json:"users" aocheck:"user"`
}

type UserIDs

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

Jump to

Keyboard shortcuts

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