package projects import ( "admin/apps/game/domain/entity" dto2 "admin/internal/model/dto" ) type IPostResourceOpListHook interface { List(projectInfo *entity.Project, resource string, params *dto2.CommonListReq, fields []*dto2.CommonDtoFieldDesc, totalCount int, rows []dto2.CommonDtoValues) ( int, []*dto2.CommonDtoFieldDesc, []dto2.CommonDtoValues, error) } type IPostResourceOpCreateHook interface { Create(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error } type IPostResourceOpEditHook interface { Edit(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error } type IPostResourceOpDeleteHook interface { Delete(projectInfo *entity.Project, resource string, dtoObj dto2.CommonDtoValues) error } type IPostResourceOpRowsHook interface { RowsSelection(projectInfo *entity.Project, resource string, btnKey string, dtoObjs []dto2.CommonDtoValues) (*dto2.CommonRowsSelectionRsp, error) } type IGetAccountDetailHook interface { GetDetail(projectInfo *entity.Project, account string) (*dto2.GetAccountDetailRsp, error) } type IGetAllValueChoicesHook interface { // 获取所有道具,可以用于前端页面做下拉选择等 GetItems(projectInfo *entity.Project) ([]*dto2.CommonDtoFieldChoice, error) }