Documentation ¶
Index ¶
- Variables
- type ProfileStorage
- func (pl *ProfileStorage) AppendSubByIDs(ctx context.Context, userID uint, advertID uint) bool
- func (pl *ProfileStorage) CreateProfile(ctx context.Context, userID uint) *models.Profile
- func (pl *ProfileStorage) GetProfileByUserID(ctx context.Context, userID uint) (*models.Profile, error)
- func (pl *ProfileStorage) SetProfileAvatarUrl(ctx context.Context, fullPath string, userID uint) (string, error)
- func (pl *ProfileStorage) SetProfileCity(ctx context.Context, userID uint, data models.City) (*models.Profile, error)
- func (pl *ProfileStorage) SetProfileInfo(ctx context.Context, userID uint, data models.EditProfileNec) (*models.Profile, error)
- func (pl *ProfileStorage) SetProfilePhone(ctx context.Context, userID uint, data models.SetProfilePhoneNec) (*models.Profile, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NameSeqProfile = pgx.Identifier{"public", "profile_id_seq"} //nolint:gochecknoglobals
)
Functions ¶
This section is empty.
Types ¶
type ProfileStorage ¶
type ProfileStorage struct {
// contains filtered or unexported fields
}
func NewProfileStorage ¶
func NewProfileStorage(pool *pgxpool.Pool, metrics *mymetrics.DatabaseMetrics) *ProfileStorage
func (*ProfileStorage) AppendSubByIDs ¶
func (*ProfileStorage) CreateProfile ¶
func (*ProfileStorage) GetProfileByUserID ¶
func (*ProfileStorage) SetProfileAvatarUrl ¶
func (*ProfileStorage) SetProfileCity ¶
func (*ProfileStorage) SetProfileInfo ¶
func (pl *ProfileStorage) SetProfileInfo(ctx context.Context, userID uint, data models.EditProfileNec) (*models.Profile, error)
func (*ProfileStorage) SetProfilePhone ¶
func (pl *ProfileStorage) SetProfilePhone(ctx context.Context, userID uint, data models.SetProfilePhoneNec) (*models.Profile, error)
Click to show internal directories.
Click to hide internal directories.