master
王皓雯 6 years ago
parent 1855d254ec
commit 6851dc5ba2

@ -0,0 +1,80 @@
package com.macro.mall.service;
import com.macro.mall.dto.UmsAdminParam;
import com.macro.mall.model.UmsAdmin;
import com.macro.mall.model.UmsPermission;
import com.macro.mall.model.UmsRole;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
public interface UmsAdminService {
/**
*
*/
UmsAdmin getAdminByUsername(String username);
/**
*
*/
UmsAdmin register(UmsAdminParam umsAdminParam);
/**
*
* @param username
* @param password
* @return JWTtoken
*/
String login(String username,String password);
/**
* token
* @param oldToken token
*/
String refreshToken(String oldToken);
/**
* id
*/
UmsAdmin getItem(Long id);
/**
*
*/
List<UmsAdmin> list(String name, Integer pageSize, Integer pageNum);
/**
*
*/
int update(Long id, UmsAdmin admin);
/**
*
*/
int delete(Long id);
/**
*
*/
@Transactional
int updateRole(Long adminId, List<Long> roleIds);
/**
*
*/
List<UmsRole> getRoleList(Long adminId);
/**
* +-
*/
@Transactional
int updatePermission(Long adminId, List<Long> permissionIds);
/**
* +-
*/
List<UmsPermission> getPermissionList(Long adminId);
}

@ -0,0 +1,16 @@
package com.macro.mall.service;
import com.macro.mall.model.UmsMemberLevel;
import java.util.List;
/**
* Service
*/
public interface UmsMemberLevelService {
/**
*
* @param defaultStatus
*/
List<UmsMemberLevel> list(Integer defaultStatus);
}

@ -0,0 +1,36 @@
package com.macro.mall.service;
import com.macro.mall.dto.UmsPermissionNode;
import com.macro.mall.model.UmsPermission;
import java.util.List;
/**
* Service
*/
public interface UmsPermissionService {
/**
*
*/
int create(UmsPermission permission);
/**
*
*/
int update(Long id,UmsPermission permission);
/**
*
*/
int delete(List<Long> ids);
/**
*
*/
List<UmsPermissionNode> treeList();
/**
*
*/
List<UmsPermission> list();
}

@ -0,0 +1,43 @@
package com.macro.mall.service;
import com.macro.mall.model.UmsPermission;
import com.macro.mall.model.UmsRole;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
public interface UmsRoleService {
/**
*
*/
int create(UmsRole role);
/**
*
*/
int update(Long id, UmsRole role);
/**
*
*/
int delete(List<Long> ids);
/**
*
*/
List<UmsPermission> getPermissionList(Long roleId);
/**
*
*/
@Transactional
int updatePermission(Long roleId, List<Long> permissionIds);
/**
*
*/
List<UmsRole> list();
}
Loading…
Cancel
Save