v1

package
v0.0.0-...-9139af7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL