38 lines
1.3 KiB
Go
Raw Normal View History

2025-04-24 20:39:31 +08:00
package projects
import (
"admin/apps/game/domain/entity"
2025-05-16 15:17:10 +08:00
dto2 "admin/internal/model/dto"
2025-04-24 20:39:31 +08:00
)
type IPostResourceOpListHook interface {
2025-05-16 15:17:10 +08:00
List(projectInfo *entity.Project, resource string, params *dto2.CommonListReq,
fields []*dto2.CommonDtoFieldDesc, totalCount int, rows []dto2.CommonDtoValues) (
int, []*dto2.CommonDtoFieldDesc, []dto2.CommonDtoValues, error)
2025-04-24 20:39:31 +08:00
}
type IPostResourceOpCreateHook interface {
2025-05-16 15:17:10 +08:00
Create(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error
2025-04-24 20:39:31 +08:00
}
type IPostResourceOpEditHook interface {
2025-05-16 15:17:10 +08:00
Edit(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error
2025-04-24 20:39:31 +08:00
}
type IPostResourceOpDeleteHook interface {
2025-05-16 15:17:10 +08:00
Delete(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error
2025-04-24 20:39:31 +08:00
}
2025-05-12 18:43:41 +08:00
type IPostResourceOpRowsHook interface {
2025-05-16 15:17:10 +08:00
RowsSelection(projectInfo *entity.Project, resource string, btnKey string, dtoObjs []dto2.CommonDtoValues) (*dto2.CommonRowsSelectionRsp, error)
2025-05-12 18:43:41 +08:00
}
2025-05-13 18:13:22 +08:00
type IGetAccountDetailHook interface {
2025-05-16 15:17:10 +08:00
GetDetail(projectInfo *entity.Project, account string) (*dto2.GetAccountDetailRsp, error)
2025-05-13 18:13:22 +08:00
}
2025-04-24 20:39:31 +08:00
type IGetAllValueChoicesHook interface {
// 获取所有道具,可以用于前端页面做下拉选择等
2025-05-16 15:17:10 +08:00
GetItems(projectInfo *entity.Project) ([]*dto2.CommonDtoFieldChoice, error)
2025-04-24 20:39:31 +08:00
}