mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
24 lines
729 B
Go
24 lines
729 B
Go
package certificate
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
certificate_dto "github.com/APIParkLab/APIPark/module/certificate/dto"
|
|
"github.com/eolinker/go-common/autowire"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type ICertificateController interface {
|
|
Create(ctx *gin.Context, create *certificate_dto.FileInput) error
|
|
Update(ctx *gin.Context, id string, edit *certificate_dto.FileInput) error
|
|
ListForPartition(ctx *gin.Context) ([]*certificate_dto.Certificate, error)
|
|
Detail(ctx *gin.Context, id string) (*certificate_dto.Certificate, *certificate_dto.File, error)
|
|
Delete(ctx *gin.Context, id string) (string, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[ICertificateController](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlCertificate))
|
|
})
|
|
}
|