Documentation ¶
Overview ¶
Package profile プロフィール作成リクエスト
Package profile プロフィール作成レスポンス ¶
Package profile プロフィール取得リクエスト ¶
Package profile プロフィール作成レスポンス ¶
Package profile is a generated GoMock package.
Package profile プロフィール更新リクエスト ¶
Package profile プロフィール更新レスポンス
Index ¶
- type MockProfileService
- func (m *MockProfileService) Create(ctx context.Context, tx *gorm.DB, req *ProfileCreateRequest) (*ProfileCreateResponse, error)
- func (m *MockProfileService) EXPECT() *MockProfileServiceMockRecorder
- func (m *MockProfileService) Get(ctx context.Context, req *ProfileGetRequest) (*ProfileGetResponse, error)
- func (m *MockProfileService) Update(ctx context.Context, tx *gorm.DB, req *ProfileUpdateRequest) (*ProfileUpdateResponse, error)
- type MockProfileServiceMockRecorder
- type ProfileCreateRequest
- type ProfileCreateRequests
- type ProfileCreateResponse
- type ProfileCreateResponses
- type ProfileGetRequest
- type ProfileGetRequests
- type ProfileGetResponse
- type ProfileGetResponses
- type ProfileService
- type ProfileUpdateRequest
- type ProfileUpdateRequests
- type ProfileUpdateResponse
- type ProfileUpdateResponses
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 ¶
func (m *MockProfileService) Create(ctx context.Context, tx *gorm.DB, req *ProfileCreateRequest) (*ProfileCreateResponse, error)
Create mocks base method.
func (*MockProfileService) EXPECT ¶
func (m *MockProfileService) EXPECT() *MockProfileServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProfileService) Get ¶
func (m *MockProfileService) Get(ctx context.Context, req *ProfileGetRequest) (*ProfileGetResponse, error)
Get mocks base method.
func (*MockProfileService) Update ¶
func (m *MockProfileService) Update(ctx context.Context, tx *gorm.DB, req *ProfileUpdateRequest) (*ProfileUpdateResponse, error)
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 ¶
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 ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.