Skip to content

Добавление поля "Пол" для пользователя#21

Open
pyatnitsev wants to merge 1 commit into
updevru:masterfrom
pyatnitsev:genders
Open

Добавление поля "Пол" для пользователя#21
pyatnitsev wants to merge 1 commit into
updevru:masterfrom
pyatnitsev:genders

Conversation

@pyatnitsev

Copy link
Copy Markdown

Добавил поле Пол для пользователя, по-умолчанию - мужской,
Добавил в gitignore lock для пакетов, config.json, который создается автоматически.

Comment thread domain/user.go

func NewUser(name string, login string, nickname string, weekendDays []string, intervals []WeekendInterval) (*User, error) {
func genderValidate(gender string) error {
if gender != "male" && gender != "female" {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Под эти константы проситься отдельный тип, а не просто строки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants