account

package
v0.0.0-...-4834045 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package account アカウント作成リクエスト

Package account アカウント作成レスポンス

Package account アカウント取得リクエスト

Package account アカウント取得レスポンス

Package account アカウントトークン取得リクエスト

Package account アカウントトークン取得レスポンス

Package account アカウントログインリクエスト

Package account アカウントログインレスポンス

Package account is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreateRequest

type AccountCreateRequest struct {
	UserId   string
	Name     string
	Password string
}

func NewAccountCreateRequest

func NewAccountCreateRequest() *AccountCreateRequest

func SetAccountCreateRequest

func SetAccountCreateRequest(userId string, name string, password string) *AccountCreateRequest

type AccountCreateRequests

type AccountCreateRequests []*AccountCreateRequest

func NewAccountCreateRequests

func NewAccountCreateRequests() AccountCreateRequests

type AccountCreateResponse

type AccountCreateResponse struct {
	UserAccount *userAccount.UserAccount
}

func NewAccountCreateResponse

func NewAccountCreateResponse() *AccountCreateResponse

func SetAccountCreateResponse

func SetAccountCreateResponse(userAccount *userAccount.UserAccount) *AccountCreateResponse

type AccountCreateResponses

type AccountCreateResponses []*AccountCreateResponse

func NewAccountCreateResponses

func NewAccountCreateResponses() AccountCreateResponses

type AccountGetRequest

type AccountGetRequest struct {
	UserId string
}

func NewAccountGetRequest

func NewAccountGetRequest() *AccountGetRequest

func SetAccountGetRequest

func SetAccountGetRequest(userId string) *AccountGetRequest

type AccountGetRequests

type AccountGetRequests []*AccountGetRequest

func NewAccountGetRequests

func NewAccountGetRequests() AccountGetRequests

type AccountGetResponse

type AccountGetResponse struct {
	UserAccount *userAccount.UserAccount
}

func NewAccountGetResponse

func NewAccountGetResponse() *AccountGetResponse

func SetAccountGetResponse

func SetAccountGetResponse(userAccount *userAccount.UserAccount) *AccountGetResponse

type AccountGetResponses

type AccountGetResponses []*AccountGetResponse

func NewAccountGetResponses

func NewAccountGetResponses() AccountGetResponses

type AccountGetTokenRequest

type AccountGetTokenRequest struct {
	UserId string
}

func NewAccountGetTokenRequest

func NewAccountGetTokenRequest() *AccountGetTokenRequest

func SetAccountGetTokenRequest

func SetAccountGetTokenRequest(userId string) *AccountGetTokenRequest

type AccountGetTokenRequests

type AccountGetTokenRequests []*AccountGetTokenRequest

func NewAccountGetTokenRequests

func NewAccountGetTokenRequests() AccountGetTokenRequests

type AccountGetTokenResponse

type AccountGetTokenResponse struct {
	UserAccountToken *userAccountToken.UserAccountToken
}

func NewAccountGetTokenResponse

func NewAccountGetTokenResponse() *AccountGetTokenResponse

func SetAccountGetTokenResponse

func SetAccountGetTokenResponse(userAccountToken *userAccountToken.UserAccountToken) *AccountGetTokenResponse

type AccountGetTokenResponses

type AccountGetTokenResponses []*AccountGetTokenResponse

func NewAccountGetTokenResponses

func NewAccountGetTokenResponses() AccountGetTokenResponses

type AccountLoginRequest

type AccountLoginRequest struct {
	UserId   string
	Password string
}

func NewAccountLoginRequest

func NewAccountLoginRequest() *AccountLoginRequest

func SetAccountLoginRequest

func SetAccountLoginRequest(userId string, password string) *AccountLoginRequest

type AccountLoginRequests

type AccountLoginRequests []*AccountLoginRequest

func NewAccountLoginRequests

func NewAccountLoginRequests() AccountLoginRequests

type AccountLoginResponse

type AccountLoginResponse struct {
	Token       string
	UserAccount *userAccount.UserAccount
}

func NewAccountLoginResponse

func NewAccountLoginResponse() *AccountLoginResponse

func SetAccountLoginResponse

func SetAccountLoginResponse(token string, userAccount *userAccount.UserAccount) *AccountLoginResponse

type AccountLoginResponses

type AccountLoginResponses []*AccountLoginResponse

func NewAccountLoginResponses

func NewAccountLoginResponses() AccountLoginResponses

type AccountService

type AccountService interface {
	Get(ctx context.Context, req *AccountGetRequest) (*AccountGetResponse, error)
	GetToken(ctx context.Context, req *AccountGetTokenRequest) (*AccountGetTokenResponse, error)
	Create(ctx context.Context, tx *gorm.DB, req *AccountCreateRequest) (*AccountCreateResponse, error)
	CreateUserId(ctx context.Context) (string, error)
	Login(ctx context.Context, mtx *gorm.DB, rtx redis.Pipeliner, req *AccountLoginRequest) (*AccountLoginResponse, error)
}

func NewAccountService

func NewAccountService(
	shardService shard.ShardService,
	userAccountMysqlRepository userAccount.UserAccountMysqlRepository,
	userAccountRedisRepository userAccount.UserAccountRedisRepository,
	userAccountTokenRedisRepository userAccountToken.UserAccountTokenRedisRepository,
) AccountService

type MockAccountService

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

MockAccountService is a mock of AccountService interface.

func NewMockAccountService

func NewMockAccountService(ctrl *gomock.Controller) *MockAccountService

NewMockAccountService creates a new mock instance.

func (*MockAccountService) Create

Create mocks base method.

func (*MockAccountService) CreateUserId

func (m *MockAccountService) CreateUserId(ctx context.Context) (string, error)

CreateUserId mocks base method.

func (*MockAccountService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountService) Get

Get mocks base method.

func (*MockAccountService) GetToken

GetToken mocks base method.

func (*MockAccountService) Login

Login mocks base method.

type MockAccountServiceMockRecorder

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

MockAccountServiceMockRecorder is the mock recorder for MockAccountService.

func (*MockAccountServiceMockRecorder) Create

func (mr *MockAccountServiceMockRecorder) Create(ctx, tx, req interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockAccountServiceMockRecorder) CreateUserId

func (mr *MockAccountServiceMockRecorder) CreateUserId(ctx interface{}) *gomock.Call

CreateUserId indicates an expected call of CreateUserId.

func (*MockAccountServiceMockRecorder) Get

func (mr *MockAccountServiceMockRecorder) Get(ctx, req interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockAccountServiceMockRecorder) GetToken

func (mr *MockAccountServiceMockRecorder) GetToken(ctx, req interface{}) *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockAccountServiceMockRecorder) Login

func (mr *MockAccountServiceMockRecorder) Login(ctx, mtx, rtx, req interface{}) *gomock.Call

Login indicates an expected call of Login.

Directories

Path Synopsis
Package userAccount ユーザーアカウント
Package userAccount ユーザーアカウント
Package userAccountToken ユーザーアカウントトークン
Package userAccountToken ユーザーアカウントトークン

Jump to

Keyboard shortcuts

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