profile

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: 6 Imported by: 0

Documentation

Overview

Package profile プロフィール作成リクエスト

Package profile プロフィール作成レスポンス

Package profile プロフィール取得リクエスト

Package profile プロフィール作成レスポンス

Package profile is a generated GoMock package.

Package profile プロフィール更新リクエスト

Package profile プロフィール更新レスポンス

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProfileService

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

MockProfileService is a mock of ProfileService interface.

func NewMockProfileService

func NewMockProfileService(ctrl *gomock.Controller) *MockProfileService

NewMockProfileService creates a new mock instance.

func (*MockProfileService) Create

Create mocks base method.

func (*MockProfileService) EXPECT

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

func (*MockProfileService) Get

Get mocks base method.

func (*MockProfileService) Update

Update mocks base method.

type MockProfileServiceMockRecorder

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

MockProfileServiceMockRecorder is the mock recorder for MockProfileService.

func (*MockProfileServiceMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockProfileServiceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockProfileServiceMockRecorder) Update

func (mr *MockProfileServiceMockRecorder) Update(ctx, tx, req interface{}) *gomock.Call

Update indicates an expected call of Update.

type ProfileCreateRequest

type ProfileCreateRequest struct {
	UserId  string
	Name    string
	Content string
}

func NewProfileCreateRequest

func NewProfileCreateRequest() *ProfileCreateRequest

func SetProfileCreateRequest

func SetProfileCreateRequest(userId string, name string, content string) *ProfileCreateRequest

type ProfileCreateRequests

type ProfileCreateRequests []*ProfileCreateRequest

func NewProfileCreateRequests

func NewProfileCreateRequests() ProfileCreateRequests

type ProfileCreateResponse

type ProfileCreateResponse struct {
	UserProfile *userProfile.UserProfile
}

func NewProfileCreateResponse

func NewProfileCreateResponse() *ProfileCreateResponse

func SetProfileCreateResponse

func SetProfileCreateResponse(userProfile *userProfile.UserProfile) *ProfileCreateResponse

type ProfileCreateResponses

type ProfileCreateResponses []*ProfileCreateResponse

func NewProfileCreateResponses

func NewProfileCreateResponses() ProfileCreateResponses

type ProfileGetRequest

type ProfileGetRequest struct {
	UserId string
}

func NewProfileGetRequest

func NewProfileGetRequest() *ProfileGetRequest

func SetProfileGetRequest

func SetProfileGetRequest(userId string) *ProfileGetRequest

type ProfileGetRequests

type ProfileGetRequests []*ProfileGetRequest

func NewProfileGetRequests

func NewProfileGetRequests() ProfileGetRequests

type ProfileGetResponse

type ProfileGetResponse struct {
	UserProfile *userProfile.UserProfile
}

func NewProfileGetResponse

func NewProfileGetResponse() *ProfileGetResponse

func SetProfileGetResponse

func SetProfileGetResponse(userProfile *userProfile.UserProfile) *ProfileGetResponse

type ProfileGetResponses

type ProfileGetResponses []*ProfileGetResponse

func NewProfileGetResponses

func NewProfileGetResponses() ProfileGetResponses

type ProfileService

type ProfileService interface {
	Get(ctx context.Context, req *ProfileGetRequest) (*ProfileGetResponse, error)
	Create(ctx context.Context, tx *gorm.DB, req *ProfileCreateRequest) (*ProfileCreateResponse, error)
	Update(ctx context.Context, tx *gorm.DB, req *ProfileUpdateRequest) (*ProfileUpdateResponse, error)
}

func NewProfileService

func NewProfileService(
	userProfileMysqlRepository userProfile.UserProfileMysqlRepository,
) ProfileService

type ProfileUpdateRequest

type ProfileUpdateRequest struct {
	UserId  string
	Name    string
	Content string
}

func NewProfileUpdateRequest

func NewProfileUpdateRequest() *ProfileUpdateRequest

func SetProfileUpdateRequest

func SetProfileUpdateRequest(userId string, name string, content string) *ProfileUpdateRequest

type ProfileUpdateRequests

type ProfileUpdateRequests []*ProfileUpdateRequest

func NewProfileUpdateRequests

func NewProfileUpdateRequests() ProfileUpdateRequests

type ProfileUpdateResponse

type ProfileUpdateResponse struct {
	UserProfile *userProfile.UserProfile
}

func NewProfileUpdateResponse

func NewProfileUpdateResponse() *ProfileUpdateResponse

func SetProfileUpdateResponse

func SetProfileUpdateResponse(userProfile *userProfile.UserProfile) *ProfileUpdateResponse

type ProfileUpdateResponses

type ProfileUpdateResponses []*ProfileUpdateResponse

func NewProfileUpdateResponses

func NewProfileUpdateResponses() ProfileUpdateResponses

Directories

Path Synopsis
Package userProfile ユーザープロフィール
Package userProfile ユーザープロフィール

Jump to

Keyboard shortcuts

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