entity

package
v0.0.0-...-7efc56f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListLimitDefault  = "100" // 一覧取得上限
	ListOffsetDefault = "0"   // 一覧取得開始位置
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	ID               string      `json:"id"`               // ユーザーID
	Username         string      `json:"username"`         // ユーザー名
	Email            string      `json:"email"`            // メールアドレス
	PhoneNumber      string      `json:"phoneNumber"`      // 電話番号
	Role             entity.Role `json:"role"`             // ユーザー権限
	ThumbnailURL     string      `json:"thumbnailUrl"`     // サムネイルURL
	SelfIntroduction string      `json:"selfIntroduction"` // 自己紹介
	LastName         string      `json:"lastName"`         // 姓
	FirstName        string      `json:"firstName"`        // 名
	LastNameKana     string      `json:"lastNameKana"`     // 姓(かな)
	FirstNameKana    string      `json:"firstNameKana"`    // 名(かな)
	CreatedAt        string      `json:"createdAt"`        // 作成日時
	UpdatedAt        string      `json:"updatedAt"`        // 更新日時
}

func NewAdmin

func NewAdmin(a *entity.Admin) *Admin

type Admins

type Admins []*Admin

func NewAdmins

func NewAdmins(as entity.Admins) Admins

type Auth

type Auth struct {
	ID               string      `json:"id"`               // ユーザーID
	Username         string      `json:"username"`         // ユーザー名
	Email            string      `json:"email"`            // メールアドレス
	PhoneNumber      string      `json:"phoneNumber"`      // 電話番号
	Role             entity.Role `json:"role"`             // ユーザー権限
	ThumbnailURL     string      `json:"thumbnailUrl"`     // サムネイルURL
	SelfIntroduction string      `json:"selfIntroduction"` // 自己紹介
	LastName         string      `json:"lastName"`         // 姓
	FirstName        string      `json:"firstName"`        // 名
	LastNameKana     string      `json:"lastNameKana"`     // 姓(かな)
	FirstNameKana    string      `json:"firstNameKana"`    // 名(かな)
	CreatedAt        string      `json:"createdAt"`        // 作成日時
	UpdatedAt        string      `json:"updatedAt"`        // 更新日時
}

func NewAuth

func NewAuth(a *entity.Auth) *Auth

type User

type User struct {
	ID               string `json:"id"`               // ユーザーID
	Username         string `json:"username"`         // ユーザー名
	Email            string `json:"email"`            // メールアドレス
	PhoneNumber      string `json:"phoneNumber"`      // 電話番号
	ThumbnailURL     string `json:"thumbnailUrl"`     // サムネイルURL
	SelfIntroduction string `json:"selfIntroduction"` // 自己紹介
	LastName         string `json:"lastName"`         // 姓
	FirstName        string `json:"firstName"`        // 名
	LastNameKana     string `json:"lastNameKana"`     // 姓(かな)
	FirstNameKana    string `json:"firstNameKana"`    // 名(かな)
	CreatedAt        string `json:"createdAt"`        // 作成日時
	UpdatedAt        string `json:"updatedAt"`        // 更新日時
}

func NewUser

func NewUser(u *entity.User) *User

type Users

type Users []*User

func NewUsers

func NewUsers(us entity.Users) Users

Jump to

Keyboard shortcuts

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