Download model/user_api.go from ls-ylm/ls: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/ls-ylm/ls/resolve/main/model/user_api.go
- Command line
-
hf download hf://spaces/ls-ylm/ls/model/user_api.go
-
curl -L -o user_api.go https://huggingface.co/spaces/ls-ylm/ls/resolve/main/model/user_api.go
477 Bytes
| package model | |
| type UserForm struct { | |
| Role Role `json:"role,omitempty"` | |
| Username string `json:"username,omitempty"` | |
| Password string `json:"password,omitempty" gorm:"type:char(72)"` | |
| } | |
| type ProfileForm struct { | |
| OriginalPassword string `json:"original_password,omitempty"` | |
| NewUsername string `json:"new_username,omitempty"` | |
| NewPassword string `json:"new_password,omitempty"` | |
| RejectPassword bool `json:"reject_password,omitempty" validate:"optional"` | |
| } | |