package api import ( "atlas9.dev/c/core/iam" "atlas9.dev/c/demo/store" ) const ( Path_Profiles_Get = "POST /Profiles_Get" Path_Profiles_Save = "POST /Profiles_Save" ) type Profiles_GetReq struct{} type Profiles_GetRes struct { User *iam.User // TODO move out of store. Profile *store.Profile } type Profiles_SaveReq struct { Name string Bio string Location string Website string PictureURL string } type Profiles_SaveRes struct{} func (r *Profiles_SaveReq) Prepare() error { return nil }