mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
23 lines
588 B
Go
23 lines
588 B
Go
package ai_balance
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
ai_balance_dto "github.com/APIParkLab/APIPark/module/ai-balance/dto"
|
|
"github.com/eolinker/go-common/autowire"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type IBalanceController interface {
|
|
List(ctx *gin.Context, keyword string) ([]*ai_balance_dto.Item, error)
|
|
Sort(ctx *gin.Context, input *ai_balance_dto.Sort) error
|
|
Create(ctx *gin.Context, input *ai_balance_dto.Create) error
|
|
Delete(ctx *gin.Context, id string) error
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IBalanceController](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlBalanceController))
|
|
})
|
|
}
|