accounts

package
v0.0.0-...-3fba5e8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package accounts @service accounts @title Accounts @description Accounts service @internal false

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Service

func Service() (svc service.Service)

Types

type CreateArgument

type CreateArgument struct {
	// Username
	// @title username
	// @description account's username
	Username string `json:"username" validate:"required" message:"username is invalid"`
	// Password
	// @title password
	// @description account's password
	Password string `json:"password" validate:"required" message:"password is invalid"`
}

CreateArgument @title Create account argument @description Create account argument

type CreateResult

type CreateResult struct {
	// I'd
	// @title id
	// @description account id
	Id uint64 `json:"id"`
}

CreateResult @title Create account result @description Create account result

func Create

func Create(ctx context.Context, argument CreateArgument) (result *CreateResult, err errors.CodeError)

Jump to

Keyboard shortcuts

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