refactor(service): 重构模型网关服务结构
This commit is contained in:
18
controller/model_gateway_logs_stat_controller.go
Normal file
18
controller/model_gateway_logs_stat_controller.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
statService "model-gateway/service/stat"
|
||||
|
||||
"model-gateway/model/dto"
|
||||
)
|
||||
|
||||
// ModelGatewayLogsStat 统计控制器
|
||||
var ModelGatewayLogsStat = new(stat)
|
||||
|
||||
type stat struct{}
|
||||
|
||||
// ListModelStat 统计列表
|
||||
func (c *stat) ListModelStat(ctx context.Context, req *dto.ListModelStatReq) (res *dto.ListModelStatRes, err error) {
|
||||
return statService.ModelGatewayLogsStat.List(ctx, req)
|
||||
}
|
||||
Reference in New Issue
Block a user