dto

package
v0.0.0-...-c60c4f7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrgReq

type CreateOrgReq struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Domain      string `json:"domain"`
	UserId      int64  `json:"-"`
}

CreateOrgReq represent create org request body

type CreateUserReq

type CreateUserReq struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
	Code      string `json:"code"`
}

type InviteUsers

type InviteUsers struct {
	OrgId  int64    `json:"-" param:"orgId"`
	Emails []string `json:"emails"`
}

type SearchOrgsReq

type SearchOrgsReq struct {
	Limit int64 `query:"limit"`
	Page  int64 `query:"page"`
	Ids   []int64
}

type SearchUsersReq

type SearchUsersReq struct {
	Limit int64 `json:"limit" query:"limit"`
	Page  int64 `json:"page" query:"page"`
}

type UpdateOrgReq

type UpdateOrgReq struct {
	OrgId       int64  `json:"-" param:"orgId"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Domain      string `json:"domain"`
}

UpdateOrgReq represent update org request body

type UpdateUserReq

type UpdateUserReq struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Phone     string `json:"phone"`
	Status    string `json:"status"`
}

UpdateUserReq represent update org request body

Jump to

Keyboard shortcuts

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