覆写常用默认数据管理器

yexiu 接口和集成 326

覆写常用默认数据管理器

回复

共1条回复 我来回复
  • yexiu的头像
    yexiu
    数式Oinone用户
    评论

    @Action.Advanced(name = FunctionConstants.create, managed = true)//默认取的是方法名
    @Action(displayName = “确定”, summary = “添加”, bindingType = ViewTypeEnum.FORM)
    @Function(name = FunctionConstants.create)//默认取的是方法名
    @Function.fun(FunctionConstants.create)//默认取的是方法名
    public AuthRole create(AuthRole data) {

    @Action.Advanced(type = FunctionTypeEnum.UPDATE, managed = true, invisible = ExpConstants.idValueNotExist)
    @Action(displayName = “更新”, label = “确定”, summary = “修改”, bindingType = ViewTypeEnum.FORM)
    public AuthRole update(AuthRole data) {

    @Action.Advanced(type = FunctionTypeEnum.DELETE, managed = true, priority = 66)
    @Action(displayName = “删除”, label = “删除”, contextType = ActionContextTypeEnum.SINGLE_AND_BATCH)
    @Function.fun(FunctionConstant.deleteWithFieldBatch)
    public List< AuthRole > delete(List< AuthRoe > dataList) {

    @Function.Advanced(displayName = “查询角色列表”, type = FunctionTypeEnum.QUERY, category = FunctionCategoryEnum.QUERY_PAGE, managed = true)
    @Function(openLevel = {FunctionOpenEnum.LOCAL, FunctionOpenEnum.REMOTE, FunctionOpenEnum.API})
    public Pagination< AuthRole > queryPage(Pagination< AuthRole > page, IWrapper< AuthRole > queryWrapper) {//注意方法名和入参名称必须和平台保持一致

    @Function.Advanced(displayName = “查询指定角色”, type = FunctionTypeEnum.QUERY, category = FunctionCategoryEnum.QUERY_ONE, managed = true)
    @Function.fun(FunctionConstants.queryByEntity)
    @Function(openLevel = {FunctionOpenEnum.LOCAL, FunctionOpenEnum.REMOTE, FunctionOpenEnum.API})
    public AuthRole queryOne(AuthRole query) {//注意方法名和入参名称必须和平台保持一致

    3个月前 0条评论