Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeInformation ¶
ChangeInformation @Summary 修改个人信息 @Description 修改个人信息 @Tags 个人中心 @Produce json @Param name body string false "姓名" @Param mobile body int false "手机" @Param email body string false "邮箱" @Success 200 {object} app.Response @Failure 400 {object} app.Response @Router /api/profile/information [put]
func ChangePassword ¶
ChangePassword @Summary 修改个人密码 @Description 修改个人密码 @Tags 个人中心 @Produce json @Param old_password body string true "旧密码" @Param password body string true "新密码" @Param confirm_password body string true "确认密码" @Success 200 {object} app.Response @Failure 400 {object} app.Response @Router /api/profile/password [put]
func MobileValidation ¶
func MobileValidation(fl validator.FieldLevel) bool
MobileValidation 自定义验证函数
func NameValidation ¶
func NameValidation(fl validator.FieldLevel) bool
NameValidation 自定义验证函数,只是示例,未使用