Discover Packages
github.com/corvinusz/for-swagger
server
groups
package
Version:
v0.0.0-...-1276dd2
Opens a new window with list of versions in this module.
Published: Oct 9, 2017
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Entity struct {
ID uint64 `json:"id" xorm:"'id' pk index autoincr"`
Created uint64 `json:"created" xorm:"'created'"`
Updated uint64 `json:"updated" xorm:"'updated'"`
Name string `json:"name" xorm:"index unique 'name'"`
Note string `json:"note"`
}
Entity represents group
FindByParams return groups that matches params
ExtractFrom extracts group from database with strict data
TableName is used by xorm to set a table name for this entity
Handler is a application context carrier
GetGroups is a GET /groups handler
swagger:operation GET /groups groups GetGroups
Returns groups list ¶ ---
responses:
200:
description: returns group array
schema:
type: array
items:
$ref: '#/definitions/GroupEntity'
Source Files
¶
Click to show internal directories.
Click to hide internal directories.