This commit is contained in:
邹宗楠
2022-07-26 17:46:37 +08:00
parent f4f6bbd80b
commit aee8a1961b
2 changed files with 20 additions and 19 deletions

View File

@@ -8,6 +8,11 @@ import (
"github.com/gin-gonic/gin"
)
type PrinterTemp struct {
}
var PrinterTempController = new(PrinterTemp)
// AddOrUpdateTemp 模板添加 POST
// @Title 模板添加
// @Description 模板添加
@@ -16,7 +21,7 @@ import (
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /addOrUpdateTemp [post]
func (p *Print) AddOrUpdateTemp(c *gin.Context) {
func (p *PrinterTemp) AddOrUpdateTemp(c *gin.Context) {
var (
err error
tokenInfo *model.TokenInfo
@@ -46,7 +51,7 @@ func (p *Print) AddOrUpdateTemp(c *gin.Context) {
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /deleteTemp [delete]
func (p *Print) DeleteTemp(c *gin.Context) {
func (p *PrinterTemp) DeleteTemp(c *gin.Context) {
var (
err error
tokenInfo *model.TokenInfo
@@ -74,7 +79,7 @@ func (p *Print) DeleteTemp(c *gin.Context) {
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /getUserTempList [get]
func (p *Print) GetUserTempList(c *gin.Context) {
func (p *PrinterTemp) GetUserTempList(c *gin.Context) {
var (
err error
tokenInfo *model.TokenInfo
@@ -102,7 +107,7 @@ func (p *Print) GetUserTempList(c *gin.Context) {
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /switchTemp [get]
func (p *Print) SwitchTemp(c *gin.Context) {
func (p *PrinterTemp) SwitchTemp(c *gin.Context) {
var (
err error
tokenInfo *model.TokenInfo