38 lines
1.2 KiB
Go
Raw Normal View History

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