Developer 역할 Spring 골격 smoke (role-developer-live-v2-001)
This commit is contained in:
parent
440a4bf972
commit
181ae04109
1 changed files with 15 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.example.developer.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class DeveloperService {
|
||||
|
||||
public String getRole() {
|
||||
return "DEVELOPER";
|
||||
}
|
||||
|
||||
public boolean isAuthorized(String action) {
|
||||
return "code".equals(action) || "review".equals(action) || "deploy".equals(action);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue