package api import ( "net/http" "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) func UsersApi(mux *http.ServeMux, impl *UsersImpl) { mux.HandleFunc("POST /Users.GetByEmail", impl.GetByEmail) mux.HandleFunc("POST /Users.List", impl.List) } type Users_GetByEmailReq struct { Email string } type Users_GetByEmailRes struct { User iam.User } type Users_ListReq struct { Page core.PageReq } type Users_ListRes struct { Page core.Page[iam.User] } func (r *Users_GetByEmailReq) Prepare() error { return nil } func (r *Users_ListReq) Prepare() error { return nil }