wpw-final/idl/biz/core/service.thrift
2022-12-02 20:40:23 +07:00

71 lines
No EOL
1.8 KiB
Thrift

include "./structs.thrift"
include "./exceptions.thrift"
namespace go biz.core
service CoreService {
// oneway void asd()
structs.LoginResponse login(
1: structs.LoginRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
structs.GetProfileResponse getProfile(
1: structs.GetProfileRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
structs.LogoutResponse logout(
1: structs.LogoutRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(Admin)
// Get list of users registered in system
structs.GetUserListResponse getUserList(
1: structs.GetUserListRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(Admin)
structs.CreateUserResponse createUser(
1: structs.CreateUserRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(Admin)
structs.DeleteUsersResponse deleteUsers(
1: structs.DeleteUsersRequest request,
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(All)
// Get list of accessible WajibPajak by OWNED|ROLE
structs.GetWajibPajakListResponse getWajibPajakList(
1: structs.GetWajibPajakListRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(All)
// Create WajibPajak
structs.CreateWajibPajakResponse createWajibPajak(
1: structs.CreateWajibPajakRequest request
) throws (1: exceptions.CoreServicesException e)
//@authenticated
//@role(All)
structs.DeleteWajibpajakListResponse deleteWajibPajakList(
1: structs.DeleteWajibpajakListRequest request
) throws (1: exceptions.CoreServicesException e)
}