uniugm/admin/apps/game/domain/iresource.go
2025-05-16 15:17:10 +08:00

20 lines
439 B
Go

package domain
import (
"admin/internal/model/dto"
)
type IRestfulEntity interface {
ToCommonDto() dto.CommonDtoValues
}
type IRestfulResourceSvc interface {
List(pageNo, pageLen int, whereValues ...string) ([]*dto.CommonDtoFieldDesc, []IRestfulEntity, error)
Post(obj dto.CommonDtoValues) (IRestfulEntity, error)
Put(obj dto.CommonDtoValues) (IRestfulEntity, error)
Delete(id int) error
}
type IResourceOpPostHook interface {
}