Versions in this module Expand all Collapse all v0 v0.0.1 Sep 22, 2024 Changes in this version + type AccountRepository interface + Create func(ctx context.Context, account *models.Account) error + GetByEmail func(ctx context.Context, email string) (*models.Account, error) + GetById func(ctx context.Context, id int64) (*models.Account, error) + GetByMobile func(ctx context.Context, mobile string) (*models.Account, error) + IsEmailExist func(ctx context.Context, email string) (bool, error) + IsMobileExist func(ctx context.Context, mobile string) (bool, error) + ModifyPassword func(ctx context.Context, account *models.Account) error + type FileRepository interface + Add func(ctx context.Context, tx *gorm.DB, file *models.File, ...) error + GetTx func() *gorm.DB + Load func(ctx context.Context, file *models.File, method filerepo.GetTableNameFunc) error + LoadByHash func(ctx context.Context, file *models.File, method filerepo.GetTableNameFunc) error + LoadUploaded func(ctx context.Context, file *models.File, method filerepo.GetTableNameFunc) error + Remove func(ctx context.Context, tx *gorm.DB, file *models.File, ...) error + Update func(ctx context.Context, tx *gorm.DB, file *models.File, ...) error + type MinioRepository interface + CreateSlicingUpload func(ctx context.Context, bucketName, objectName string, ...) (uploadId string, err error) + GetObjectHash func(ctx context.Context, bucketName, objectName string) (string, error) + ListSlicingFileParts func(ctx context.Context, bucketName, objectName, uploadId string, partsNum int64) (minio.ListObjectPartsResult, error) + MergeSlices func(ctx context.Context, bucketName, objectName, uploadId string, ...) error + PreSignGetUrl func(ctx context.Context, bucketName, objectName, fileName string, ...) (string, error) + PreSignPutUrl func(ctx context.Context, bucketName, objectName string, expireSeconds int64) (string, error) + PreSignSlicingPutUrl func(ctx context.Context, bucketName, objectName, uploadId string, parts int64) (string, error) + type MockAccountRepository struct + func NewMockAccountRepository(ctrl *gomock.Controller) *MockAccountRepository + func (m *MockAccountRepository) Create(ctx context.Context, account *models.Account) error + func (m *MockAccountRepository) EXPECT() *MockAccountRepositoryMockRecorder + func (m *MockAccountRepository) GetByEmail(ctx context.Context, email string) (*models.Account, error) + func (m *MockAccountRepository) GetById(ctx context.Context, id int64) (*models.Account, error) + func (m *MockAccountRepository) GetByMobile(ctx context.Context, mobile string) (*models.Account, error) + func (m *MockAccountRepository) IsEmailExist(ctx context.Context, email string) (bool, error) + func (m *MockAccountRepository) IsMobileExist(ctx context.Context, mobile string) (bool, error) + func (m *MockAccountRepository) ModifyPassword(ctx context.Context, account *models.Account) error + type MockAccountRepositoryMockRecorder struct + func (mr *MockAccountRepositoryMockRecorder) Create(ctx, account any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) GetByEmail(ctx, email any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) GetById(ctx, id any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) GetByMobile(ctx, mobile any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) IsEmailExist(ctx, email any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) IsMobileExist(ctx, mobile any) *gomock.Call + func (mr *MockAccountRepositoryMockRecorder) ModifyPassword(ctx, account any) *gomock.Call + type MockVerificationCodeRedisRepository struct + func NewMockVerificationCodeRedisRepository(ctrl *gomock.Controller) *MockVerificationCodeRedisRepository + func (m *MockVerificationCodeRedisRepository) EXPECT() *MockVerificationCodeRedisRepositoryMockRecorder + func (m *MockVerificationCodeRedisRepository) Get(ctx context.Context, verificationCodeId int64) (string, error) + func (m *MockVerificationCodeRedisRepository) Insert(ctx context.Context, verificationCodeId, expireTime int64, code string) error + func (m *MockVerificationCodeRedisRepository) Remove(ctx context.Context, verificationCodeId int64) error + type MockVerificationCodeRedisRepositoryMockRecorder struct + func (mr *MockVerificationCodeRedisRepositoryMockRecorder) Get(ctx, verificationCodeId any) *gomock.Call + func (mr *MockVerificationCodeRedisRepositoryMockRecorder) Insert(ctx, verificationCodeId, expireTime, code any) *gomock.Call + func (mr *MockVerificationCodeRedisRepositoryMockRecorder) Remove(ctx, verificationCodeId any) *gomock.Call + type TemplateRepository interface + Create func(ctx context.Context, template *models.Template) error + GetById func(ctx context.Context, id int64) (*models.Template, error) + ModifyById func(ctx context.Context, template *models.Template) error + Query func(ctx context.Context, limit, offset int, conditions ...gen.Condition) ([]*models.Template, error) + RemoveById func(ctx context.Context, id int64) error + type ThirdMessageSendService interface + Send func(ctx context.Context, sendType api.PostType, to, title, content string) error + type VerificationCodeRedisRepository interface + Get func(ctx context.Context, verificationCodeId int64) (string, error) + Insert func(ctx context.Context, verificationCodeId, expireTime int64, code string) error + Remove func(ctx context.Context, verificationCodeId int64) error