define event api
This commit is contained in:
parent
a40875e78b
commit
727d504f2f
|
|
@ -84,6 +84,8 @@ func RegisterRouter(router *gin.Engine) {
|
|||
authorized.GET("/transaction/template", service.QueryTransactionTemplates)
|
||||
authorized.POST("/transaction/template", service.AddTransactionTemplate)
|
||||
authorized.DELETE("/transaction/template", service.DeleteTransactionTemplate)
|
||||
authorized.GET("/event/page", service.GetAllEvents)
|
||||
authorized.POST("/event", service.AddEvent)
|
||||
authorized.GET("/tags", service.QueryTags)
|
||||
authorized.GET("/file/dir", service.QueryLedgerSourceFileDir)
|
||||
authorized.GET("/file/content", service.QueryLedgerSourceFileContent)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
package service
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type Event struct {
|
||||
Date string `json:"date"`
|
||||
Type string `json:"type"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
func GetAllEvents(c *gin.Context) {
|
||||
OK(c, nil)
|
||||
}
|
||||
|
||||
func AddEvent(c *gin.Context) {
|
||||
OK(c, nil)
|
||||
}
|
||||
Loading…
Reference in New Issue