dto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Profile_GenderType_name = map[int32]profile.Gender{
		0: profile.GenderUnspecified,
		1: profile.GenderMale,
		2: profile.GenderFemale,
	}
	Profile_GenderType_value = map[profile.Gender]int32{
		profile.GenderUnspecified: 0,
		profile.GenderMale:        1,
		profile.GenderFemale:      2,
	}
)

Functions

func ProfileToPB

func ProfileToPB(profile *ent.Profile) (account_entities.Profile, error)

func UserToPB

func UserToPB(user *ent.User) (account_entities.User, error)

Types

type ListMetadata

type ListMetadata struct {
	Count  int `json:"count"`
	Offset int `json:"offset"`
	Limit  int `json:"limit"`
	Total  int `json:"total"`
}

type ListRequest

type ListRequest struct {
	Limit  int
	Offset int
}

type ListResp

type ListResp struct {
	Metadata ListMetadata  `json:"metadata"`
	Results  []interface{} `json:"results"`
}

Jump to

Keyboard shortcuts

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