profilev1

package
v0.0.0-...-65b7641 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainName = "profilev1"
)

Variables

View Source
var (
	ErrKeyDoNotMatch = errors.New("key do not match")
)

Functions

func Registrate

func Registrate(ctx context.Context) (context.Context, error)

Types

type ArrayOfMapInterface

type ArrayOfMapInterface []map[string]interface{}

type ArrayOfProfileData

type ArrayOfProfileData []models.Profile

type ProfileDataResult

type ProfileDataResult httpsrv.ResultAnsw

type ProfileV1

type ProfileV1 struct {
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context) (*ProfileV1, error)

func (*ProfileV1) CreateProfile

func (t *ProfileV1) CreateProfile(data *models.Profile) (*models.Profile, error)

func (*ProfileV1) GetProfileByID

func (t *ProfileV1) GetProfileByID(id int64) (*models.Profile, error)

func (*ProfileV1) HardDeleteProfileByID

func (t *ProfileV1) HardDeleteProfileByID(id int64) (err error)

func (*ProfileV1) SoftDeleteProfileByID

func (t *ProfileV1) SoftDeleteProfileByID(id int64) (err error)

func (*ProfileV1) UpdateProfileByID

func (t *ProfileV1) UpdateProfileByID(id int64, patch *[]byte) (writeData *models.Profile, err error)

type ProfilesDataResult

type ProfilesDataResult httpsrv.ResultAnsw

Return array of items

Jump to

Keyboard shortcuts

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