AuthLevelServiceImpl.java 1.46 KB
package com.diligrp.website.service.impl;

import com.diligrp.website.domain.AuthLevel;
import com.diligrp.website.domain.PickUpPointDomain;
import com.diligrp.website.manager.AuthLevelManager;
import com.diligrp.website.service.AuthLevelService;
import com.diligrp.website.util.dao.BaseQuery;
import com.diligrp.website.util.domain.Result;
import com.diligrp.website.util.web.PageTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component("authLevelService")
public class AuthLevelServiceImpl implements AuthLevelService {
    
    @Resource
    private AuthLevelManager authLevelManager;

    @Override
    public PageTemplate getAuthLevelList(BaseQuery query) {
        return authLevelManager.getAuthLevelList(query);
    }

    @Override
    public boolean addAuthLevel(AuthLevel authLevel) {
        return authLevelManager.addAuthLevel(authLevel);
    }

    @Override
    public AuthLevel getAuthLevelById(Long id) {
        return authLevelManager.getAuthLevelById(id);
    }

    @Override
    public Result modifyAuthLevel(AuthLevel authLevel) {
        boolean flag = authLevelManager.modifyAuthLevel(authLevel);
        return Result.create(flag);
    }

    @Override
    public List<AuthLevel> getAllAuthLevel() {
        return authLevelManager.getAllAuthLevel();
    }

    @Override
    public AuthLevel checkName(Long id, String levelName) {
        return authLevelManager.checkName(id,levelName);
    }
}