dto

package
v0.0.0-...-c76da00 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordRequestDto

type RecordRequestDto struct {
	Content string `json:"content"`
	Title   string `json:"title"`
}

type RecordResponseDto

type RecordResponseDto struct {
	ID         uint   `json:"id"`
	Content    string `json:"content"`
	Title      string `json:"title"`
	CreateTime int64  `json:"create_time"`
	ExpireTime int64  `json:"expire_time"`
	ShortLink  string `json:"short_link"`
	RawLink    string `json:"raw_link"`
}

func CreateRecordResponseDto

func CreateRecordResponseDto(record model.Record) RecordResponseDto

CreateRecordResponseDto create record response dto with record

Jump to

Keyboard shortcuts

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