Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Service = &service{} Controller = &controller{} Module = &gonethttp.Module{ Pattern: "/v1", Controller: Controller, Service: Service, Submodules: gonethttp.NewSubmodules( internalrouterapiv1auth.Module, internalrouterapiv1note.Module, internalrouterapiv1notes.Module, internalrouterapiv1tag.Module, internalrouterapiv1tags.Module, internalrouterapiv1user.Module, ), RegisterRoutesFn: func(m *gonethttp.Module) { m.RegisterExactRoute( "GET /ping", Controller.Ping, ) m.RegisterExactRoute( "POST /sync", Controller.SyncByLastSyncedAt, internalmiddleware.AuthenticateAccessToken, ) }, } )
Functions ¶
This section is empty.
Types ¶
type SyncByLastSyncedAtResponseBody ¶
type SyncByLastSyncedAtResponseBody struct {
gonethttpresponse.BaseJSendSuccessBody
Data SyncByLastSyncedAtResponseData `json:"data"`
}
SyncByLastSyncedAtResponseBody is the response body to sync user notes by last synced at timestamp
type SyncByLastSyncedAtResponseData ¶
type SyncByLastSyncedAtResponseData struct {
SyncTags []*internalpostgresmodel.UserTagWithID `json:"sync_tags"`
SyncNotes []*internalpostgresmodel.SyncUserNoteWithID `json:"sync_notes"`
}
SyncByLastSyncedAtResponseData is the response DTO to sync user notes by last synced at timestamp
Click to show internal directories.
Click to hide internal directories.