Files
chatservice_concept/api/user.go

19 lines
227 B
Go

package api
import (
"github.com/google/uuid"
)
func newUserID() string {
return "user_" + uuid.New().String()
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
}
type UserPayload struct {
*User
}