Documentation ¶
Index ¶
- func UsersAddAddress() func(*gin.Context)
- func UsersChangeAddressDefault() func(*gin.Context)
- func UsersDelete() func(*gin.Context)
- func UsersGetAddress() func(*gin.Context)
- func UsersSignIn() func(*gin.Context)
- func UsersSignUp() func(*gin.Context)
- func UsersUpdate() func(*gin.Context)
- type UsersUpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UsersAddAddress ¶
UsersAddAddress godoc @Summary Users can add address @Description Users can add address @Tags usersFunction @Accept json @Produce json @Param user_id path string true "User ID" @Param name body string true "Name" @Param address body string true "Address" @Param phone_number body string true "PhoneNumber" @Param type body string true "Type" @Param address_default body string true "AddressDefault" @Param lat body float64 true "Lat" @Param long body float64 true "Long" @Param ward_id body string true "WardId" @Param ward_text body string true "WardText" @Param district_id body string true "DistrictId" @Param district_text body string true "DistrictText" @Param province_id body string true "ProvinceId" @Param province_text body string true "ProvinceText" @Param national_id body string true "NationalId" @Param national_text body string true "NationalText" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/add-address/{user_id} [post]
func UsersChangeAddressDefault ¶
UsersChangeAddressDefault godoc @Summary Users can change address default @Description Users can change address default @Tags usersFunction @Accept json @Produce json @Param user_id path string true "User ID" @Param name body string true "Name" @Param address body string true "Address" @Param phone_number body string true "PhoneNumber" @Param type body string true "Type" @Param address_default body string true "AddressDefault" @Param lat body float64 true "Lat" @Param long body float64 true "Long" @Param ward_id body string true "WardId" @Param ward_text body string true "WardText" @Param district_id body string true "DistrictId" @Param district_text body string true "DistrictText" @Param province_id body string true "ProvinceId" @Param province_text body string true "ProvinceText" @Param national_id body string true "NationalId" @Param national_text body string true "NationalText" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/change-address-default/{user_id} [patch]
func UsersDelete ¶
UsersDelete godoc @Summary Delete user @Description Delete user @Tags users @Accept json @Produce json @Param user_id path string true "User ID" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/delete/{user_id} [delete]
func UsersGetAddress ¶
UsersGetAddress godoc @Summary Users can get address @Description Users can get address @Tags usersFunction @Accept json @Produce json @Param user_id path string true "User ID" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/get-address/{user_id} [get]
func UsersSignIn ¶
UsersSignIn godoc @Summary Users can sign in @Description Users can sign in @Tags users @Accept json @Produce json @Param email body string true "Email" @Param pass_word body string true "PassWord" @Param phone_number body string true "PhoneNumber" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/sign_in [post]
func UsersSignUp ¶
UsersSignUp godoc @Summary Users sign up with email and password @Description Users sign up with email and password @Tags users @Accept json @Produce json @Param name body string true "Name" @Param email body string true "Email" @Param pass_word body string true "PassWord" @Param phone_number body string true "PhoneNumber" @Param address body string true "Address" @Param telegram body string true "Telegram" @Param lat body float64 true "Lat" @Param long body float64 true "Long" @Param ward_id body string true "WardId" @Param ward_text body string true "WardText" @Param district_id body string true "DistrictId" @Param district_text body string true "DistrictText" @Param province_id body string true "ProvinceId" @Param province_text body string true "ProvinceText" @Param national_id body string true "NationalId" @Param national_text body string true "NationalText" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/sign-up [post]
func UsersUpdate ¶
UsersUpdate godoc @Summary Users can update @Description Users can update @Tags users @Accept json @Produce json @Param user_id path string true "User ID" @Param name body string true "Name" @Param sex body string true "Sex" @Param birth_date body string true "BirthDate" @Param telegram body string true "Telegram" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/update/{user_id} [patch]