feat: added go-automapper for mapping dtos;
feat: implemented mapspecial package for mapping dtos that are not possible to automap by default; initialized profile service; added dtos for profile and profileSettings
This commit is contained in:
@@ -53,13 +53,13 @@ type Profile struct {
|
||||
type ProfileSetting struct {
|
||||
ID int64
|
||||
ProfileID int64
|
||||
HideFulfilled *bool
|
||||
HideProfileDetails *bool
|
||||
HideForUnauthenticated *bool
|
||||
HideBirthday *bool
|
||||
HideDates *bool
|
||||
Captcha *bool
|
||||
FollowersOnlyInteraction *bool
|
||||
HideFulfilled bool
|
||||
HideProfileDetails bool
|
||||
HideForUnauthenticated bool
|
||||
HideBirthday bool
|
||||
HideDates bool
|
||||
Captcha bool
|
||||
FollowersOnlyInteraction bool
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
|
||||
@@ -383,7 +383,7 @@ type GetProfileByUsernameRestrictedRow struct {
|
||||
AvatarUrl *string
|
||||
Color string
|
||||
ColorGrad string
|
||||
HideProfileDetails *bool
|
||||
HideProfileDetails bool
|
||||
}
|
||||
|
||||
func (q *Queries) GetProfileByUsernameRestricted(ctx context.Context, arg GetProfileByUsernameRestrictedParams) (GetProfileByUsernameRestrictedRow, error) {
|
||||
@@ -456,7 +456,7 @@ type GetProfilesRestrictedRow struct {
|
||||
AvatarUrl *string
|
||||
Color string
|
||||
ColorGrad string
|
||||
HideProfileDetails *bool
|
||||
HideProfileDetails bool
|
||||
}
|
||||
|
||||
func (q *Queries) GetProfilesRestricted(ctx context.Context, arg GetProfilesRestrictedParams) ([]GetProfilesRestrictedRow, error) {
|
||||
@@ -1035,13 +1035,13 @@ WHERE id = $1
|
||||
|
||||
type UpdateProfileSettingsParams struct {
|
||||
ID int64
|
||||
HideFulfilled *bool
|
||||
HideProfileDetails *bool
|
||||
HideForUnauthenticated *bool
|
||||
HideBirthday *bool
|
||||
HideDates *bool
|
||||
Captcha *bool
|
||||
FollowersOnlyInteraction *bool
|
||||
HideFulfilled bool
|
||||
HideProfileDetails bool
|
||||
HideForUnauthenticated bool
|
||||
HideBirthday bool
|
||||
HideDates bool
|
||||
Captcha bool
|
||||
FollowersOnlyInteraction bool
|
||||
}
|
||||
|
||||
func (q *Queries) UpdateProfileSettings(ctx context.Context, arg UpdateProfileSettingsParams) error {
|
||||
|
||||
Reference in New Issue
Block a user