sample

package
v2.5.13 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sample ...

Package sample ...

Package sample ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedType

type CreatedType int

CreatedType ...

const (
	CreatedTypeOwner CreatedType = iota
	CreatedTypeMember
	CreatedTypeGuest
)

CreatedType Values

type Enum

type Enum string

Enum ...

const (
	// EnumA ...
	EnumA Enum = "A"
	// EnumB ...
	EnumB Enum = "B"
	// EnumC ...
	EnumC Enum = "C"
)

type Flag

type Flag int

Flag - type alias(int)

type GetRequest

type GetRequest struct {
	Param string
	Time  time.Time
	Enum  Enum
}

GetRequest ...

type GetResponse

type GetResponse struct {
	Data string
}

GetResponse ...

type PostCreateTableRequest

type PostCreateTableRequest struct {
	ID   string
	Text string
	Flag Flag
	Map  map[Flag]Flag `json:"map"`
}

PostCreateTableRequest ...

type PostCreateTableResponse

type PostCreateTableResponse struct {
	ID          string
	RequestTime time.Time
}

PostCreateTableResponse ...

type PostCreateUserRequest

type PostCreateUserRequest struct {
	ID       string `param:"id"`
	Password string
	Gender   int
	Birthday time.Time
	Roles    []*Role
}

PostCreateUserRequest ...

type PostCreateUserResponse

type PostCreateUserResponse struct {
	Status      bool
	Message     string
	CreatedType CreatedType
	RequestedAt time.Time
}

PostCreateUserResponse ...

type Role

type Role struct {
	ID             int
	Name           string
	RecursionRoles []Role
}

Role ...

Directories

Path Synopsis
Package service ...
Package service ...
groups
Package groups ...
Package groups ...
groups/common
Package common ...
Package common ...
static_page
Package static ...
Package static ...
table
Package table ...
Package table ...
user
Package user ...
Package user ...
user2
Package user2 ...
Package user2 ...

Jump to

Keyboard shortcuts

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