mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
18 lines
326 B
Go
18 lines
326 B
Go
package common
|
|
|
|
import (
|
|
"github.com/eolinker/go-common/autowire"
|
|
"github.com/gin-gonic/gin"
|
|
"reflect"
|
|
)
|
|
|
|
type ICommonController interface {
|
|
Version(ctx *gin.Context) (string, string, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[ICommonController](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlCommonController))
|
|
})
|
|
}
|