uniugm/admin/apps/game/domain/iresource.go

20 lines
440 B
Go
Raw Normal View History

2025-04-24 20:39:31 +08:00
package domain
import (
"admin/apps/game/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 {
}