Discover Packages
github.com/sixwaaaay/temp-text
logic
package
Version:
v0.0.0-...-0bc64af
Opens a new window with list of versions in this module.
Published: Feb 28, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
QueryAPI godoc
@Summary query
@Description query the text by tid
@Tags HTTP API
@Produce json
@Param tid query string true "tid"
@Router /query [get]
@Success 200 {object} logic.Resp[string]
ShareAPI godoc
@Summary share
@Description share the text
@Tags HTTP API
@Produce json
@Param content formData string true "content"
@Router /share [post]
@Success 200 {object} logic.Resp[string]
type RedisConfig struct {
Addr []string `json:"addr,omitempty"`
Password string `json:"password,omitempty"`
MasterName string `json:"master_name,omitempty"`
}
type Resp[T any ] struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data T `json:"data,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.