Documentation ¶
Index ¶
- func AddComment(c *gin.Context)
- func AddEvent(c *gin.Context)
- func AddTag(c *gin.Context)
- func Create(c *gin.Context)
- func DeleteComment(c *gin.Context)
- func DeleteEvent(c *gin.Context)
- func DeleteTag(c *gin.Context)
- func FilterInfo(c *gin.Context) (fault.Filter, error)
- func Get(c *gin.Context)
- func GetComment(c *gin.Context)
- func GetEvent(c *gin.Context)
- func GetTag(c *gin.Context)
- func GetTimeLine(c *gin.Context)
- func GetUser(c *gin.Context) (string, error)
- func IsEmpty(target interface{}) bool
- func List(c *gin.Context)
- func Params(c *gin.Context, pathkey, querykey, separator string) (string, []string)
- func UpdateBasic(c *gin.Context)
- func UpdateFollower(c *gin.Context)
- func UpdateOwner(c *gin.Context)
- func UpdateState(c *gin.Context)
- type WebSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComment ¶
AddComment adds one comment into fault by fault id and comment. If successful, the newest fault info in detail will be returned.
func AddEvent ¶
AddEvent adds event into fault by event id and fault id. If successful, the newest fault info in detail will be returned.
func AddTag ¶
AddTag adds tag into fault by fault id and tags. If successful, the newest fault info in detail will be returned.
func Create ¶
Create reads params from request and creates fault. If successful, fault created will be returned.
func DeleteComment ¶
DeleteComment deletes comment from fault by fault id and comment and creator. If successful, the newest fault info in detail will be returned.
func DeleteEvent ¶
DeleteEvent deletes event from fault by event id and fault id. If successful, the newest fault info in detail will be returned.
func DeleteTag ¶
DeleteTag deletes tags from fault by fault id and tags. If successful, the newest fault in detail will be returned.
func GetComment ¶
GetComment gets comment of fault by fault id. If successful, comment info will be returned.
func GetTag ¶
GetTag gets tag info of fault by fault id. If successful, tags of fault will be returned.
func GetTimeLine ¶
GetTimeLine gets timeline of fault by fault id. If successful, timeline of fault will be returned.
func List ¶
List gets fault by filter in request. If successful, matched fault and count will be returned. Count is the number of fault which meets the filter rather than the number of fault in response body.
func UpdateBasic ¶
UpdateBasic updates title and note of fault by fault id. If successful, the newest fault in detail is returned.
func UpdateFollower ¶
UpdateFollwer updates follower of fault by fault id. If successful, the newest fault in detail will be returned.
func UpdateOwner ¶
UpdateOwner updates owner of fault by fault id. If successful, the newest fault in detail will be returned.
func UpdateState ¶
UpdateState updates state of fault by fault id. If successful, the newest fault in detail will be returned.