The convert command has a new flag: config

🐛 Fix Fetch func cannot return err
🐛 Fix cannot read templates correctly
This commit is contained in:
2024-05-23 16:57:19 +08:00
parent 9789354a51
commit 8f6e39b634
7 changed files with 117 additions and 43 deletions

View File

@ -2,8 +2,8 @@ package handler
import (
"encoding/json"
"sub2sing-box/api/model"
"sub2sing-box/common"
"sub2sing-box/model"
"sub2sing-box/util"
"github.com/gin-gonic/gin"

View File

@ -1,13 +0,0 @@
package model
type ConvertRequest struct {
Subscriptions []string `form:"subscription" json:"subscription"`
Proxies []string `form:"proxy" json:"proxy"`
Template string `form:"template" json:"template"`
Delete string `form:"delete" json:"delete"`
Rename map[string]string `form:"rename" json:"rename"`
Group bool `form:"group" json:"group"`
GroupType string `form:"group-type" json:"group-type"`
SortKey string `form:"sort" json:"sort"`
SortType string `form:"sort-type" json:"sort-type"`
}