@@ -32,11 +32,9 @@ func parseCommonParams(c *gin.Context) (params struct {
3232 tokenName string
3333 modelName string
3434 channelID int
35- endpoint string
3635 tokenID int
3736 order string
3837 requestID string
39- mode int
4038 codeType string
4139 withBody bool
4240 ip string
@@ -46,11 +44,9 @@ func parseCommonParams(c *gin.Context) (params struct {
4644 params .tokenName = c .Query ("token_name" )
4745 params .modelName = c .Query ("model_name" )
4846 params .channelID , _ = strconv .Atoi (c .Query ("channel" ))
49- params .endpoint = c .Query ("endpoint" )
5047 params .tokenID , _ = strconv .Atoi (c .Query ("token_id" ))
5148 params .order = c .Query ("order" )
5249 params .requestID = c .Query ("request_id" )
53- params .mode , _ = strconv .Atoi (c .Query ("mode" ))
5450 params .codeType = c .Query ("code_type" )
5551 params .withBody , _ = strconv .ParseBool (c .Query ("with_body" ))
5652 params .ip = c .Query ("ip" )
@@ -73,10 +69,8 @@ func parseCommonParams(c *gin.Context) (params struct {
7369// @Param token_name query string false "Token name"
7470// @Param model_name query string false "Model name"
7571// @Param channel query int false "Channel ID"
76- // @Param endpoint query string false "Endpoint"
7772// @Param token_id query int false "Token ID"
7873// @Param order query string false "Order"
79- // @Param mode query int false "Mode"
8074// @Param request_id query string false "Request ID"
8175// @Param code_type query string false "Code type"
8276// @Param with_body query bool false "With body"
@@ -99,9 +93,7 @@ func GetLogs(c *gin.Context) {
9993 params .tokenID ,
10094 params .tokenName ,
10195 params .channelID ,
102- params .endpoint ,
10396 params .order ,
104- params .mode ,
10597 model .CodeType (params .codeType ),
10698 params .withBody ,
10799 params .ip ,
@@ -131,11 +123,9 @@ func GetLogs(c *gin.Context) {
131123// @Param token_name query string false "Token name"
132124// @Param model_name query string false "Model name"
133125// @Param channel query int false "Channel ID"
134- // @Param endpoint query string false "Endpoint"
135126// @Param token_id query int false "Token ID"
136127// @Param order query string false "Order"
137128// @Param request_id query string false "Request ID"
138- // @Param mode query int false "Mode"
139129// @Param code_type query string false "Code type"
140130// @Param with_body query bool false "With body"
141131// @Param ip query string false "IP"
@@ -162,9 +152,7 @@ func GetGroupLogs(c *gin.Context) {
162152 params .tokenID ,
163153 params .tokenName ,
164154 params .channelID ,
165- params .endpoint ,
166155 params .order ,
167- params .mode ,
168156 model .CodeType (params .codeType ),
169157 params .withBody ,
170158 params .ip ,
@@ -195,11 +183,9 @@ func GetGroupLogs(c *gin.Context) {
195183// @Param token_name query string false "Filter by token name"
196184// @Param model_name query string false "Filter by model name"
197185// @Param channel query int false "Filter by channel"
198- // @Param endpoint query string false "Filter by endpoint"
199186// @Param token_id query int false "Filter by token id"
200187// @Param order query string false "Order"
201188// @Param request_id query string false "Request ID"
202- // @Param mode query int false "Mode"
203189// @Param code_type query string false "Code type"
204190// @Param with_body query bool false "With body"
205191// @Param ip query string false "IP"
@@ -217,7 +203,6 @@ func SearchLogs(c *gin.Context) {
217203 result , err := model .SearchLogs (
218204 group ,
219205 keyword ,
220- params .endpoint ,
221206 params .requestID ,
222207 params .tokenID ,
223208 params .tokenName ,
@@ -226,7 +211,6 @@ func SearchLogs(c *gin.Context) {
226211 endTime ,
227212 params .channelID ,
228213 params .order ,
229- params .mode ,
230214 model .CodeType (params .codeType ),
231215 params .withBody ,
232216 params .ip ,
@@ -257,11 +241,9 @@ func SearchLogs(c *gin.Context) {
257241// @Param token_name query string false "Filter by token name"
258242// @Param model_name query string false "Filter by model name"
259243// @Param channel query int false "Filter by channel"
260- // @Param endpoint query string false "Filter by endpoint"
261244// @Param token_id query int false "Filter by token id"
262245// @Param order query string false "Order"
263246// @Param request_id query string false "Request ID"
264- // @Param mode query int false "Mode"
265247// @Param code_type query string false "Code type"
266248// @Param with_body query bool false "With body"
267249// @Param ip query string false "IP"
@@ -283,7 +265,6 @@ func SearchGroupLogs(c *gin.Context) {
283265 result , err := model .SearchGroupLogs (
284266 group ,
285267 keyword ,
286- params .endpoint ,
287268 params .requestID ,
288269 params .tokenID ,
289270 params .tokenName ,
@@ -292,7 +273,6 @@ func SearchGroupLogs(c *gin.Context) {
292273 endTime ,
293274 params .channelID ,
294275 params .order ,
295- params .mode ,
296276 model .CodeType (params .codeType ),
297277 params .withBody ,
298278 params .ip ,
0 commit comments