package com.lightinit.hsdataplatformresdir.service; import com.lightinit.hsdataplatformresdir.entity.Admin; import com.lightinit.hsdataplatformresdir.entity.BaseExample; import com.lightinit.hsdataplatformresdir.model.ResultState; import com.lightinit.hsdataplatformresdir.model.admin.AdminViewModel; import com.lightinit.hsdataplatformresdir.model.admin.UserAddModel; import com.lightinit.hsdataplatformresdir.model.admin.UserAdminSearchModel; import com.lightinit.hsdataplatformresdir.model.admin.UserEditModel; import java.util.Dictionary; import java.util.List; /** * Created by Mr.Yao on 2017/4/12. */ public interface IAdminService { Admin SelectOne(String username); Admin QueryOne(Long id); List QueryList(Dictionary condition,String order,int page,int rows); long QueryCount(Dictionary condition,String order); boolean AddAdmin(Admin entity); boolean UpdateAdmin(Admin entity); boolean IsExits(String username); boolean Delete(Long id); AdminViewModel getAdminViewModel(Long id) ; //----------------------------------------------------------------- List queryList(UserAdminSearchModel inputModel, BaseExample.Page pager); long queryCount(UserAdminSearchModel inputModel); ResultState addAdmin(UserAddModel userAddModel); ResultState editAdmin(UserEditModel userEditModel); ResultState deleteAdmin(Long id); }