Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
e436d07c
Commit
e436d07c
authored
Jan 15, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时欢迎空壳旧资源组接口
parent
c98fcf25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
189 additions
and
0 deletions
+189
-0
ResourceApiService.java
...rc/main/java/com/gic/auth/service/ResourceApiService.java
+128
-0
ResourceApiServiceImpl.java
...m/gic/auth/service/outer/impl/ResourceApiServiceImpl.java
+60
-0
dubbo-gic-platform-auth-service.xml
...ce/src/main/resources/dubbo-gic-platform-auth-service.xml
+1
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/ResourceApiService.java
0 → 100644
View file @
e436d07c
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.*
;
/**
*
* @ClassName: ResourceApiService
* @Description:
* @author zhiwj
* @date 2019/8/28 18:14
*/
public
interface
ResourceApiService
{
/**
* 保存或更新资源
* @Title: saveOrUpdateResource
* @Description: 保存或更新资源
* @author zhiwj
* @param resourceDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
saveOrUpdateResource
(
ResourceDTO
resourceDTO
);
/**
* 删除资源
* @Title: delResource
* @Description: 删除资源
* @author zhiwj
* @param resourceId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
delResource
(
Integer
resourceId
);
/**
* 资源组列表
* @Title: listResource
* @Description:
* @author zhiwj
* @param resourceDTO
* @param pageNum
* @param pageSize
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.auth.dto.ResourceDTO>>
* @throws
*/
ServiceResponse
<
Page
<
ResourceDTO
>>
listResource
(
ResourceDTO
resourceDTO
,
Integer
pageNum
,
Integer
pageSize
);
/**
* 查询资源详情
* todo 前端对齐之后,要切换最新的接口 resourceGroupApiService
* @Title: getResource
* @Description:
* @author zhiwj
* @param resourceId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.auth.dto.ResourceDTO>>
* @throws
*/
ServiceResponse
<
ResourceDTO
>
getResource
(
Integer
resourceId
);
/**
* 按用户查询短信签名
* @Title: getSmsResourceByUserId
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.SmsSignResourceDTO>
* @throws
*/
ServiceResponse
<
SmsSignResourceDTO
>
getSmsResourceByUserId
(
Integer
userId
);
/**
* 查询用户的渠道资源(仅当前可用的数据)
* @Title: getChannelResourceByUserId
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
ChannelResourceDTO
>
getChannelResourceByUserId
(
Integer
userId
);
/**
* 查询用户的渠道资源(包含已经删除的数据)
* @Title: getChannelResourceByUserIdContainDel
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.ChannelResourceDTO>
* @throws
*/
ServiceResponse
<
ChannelResourceDTO
>
getChannelResourceByUserIdContainDel
(
Integer
userId
);
/**
* 查询门店资源
* @Title: getStoreResourceByUserId
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
StoreResourceDTO
>
getStoreResourceByUserId
(
Integer
userId
);
/**
* 查询订单资源
* @Title: getOrderResourceByUserId
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
OrderResourceDTO
>
getOrderResourceByUserId
(
Integer
userId
);
/**
* getUserResourceByUserId
* @Title: getUserResourceByUserId
* @Description:
* @author zhiwj
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.OrderResourceDTO> 返回null表示没有授权 返回 -1 表示全部
* @throws
*/
ServiceResponse
<
Long
>
getUserResourceByUserId
(
Integer
userId
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/ResourceApiServiceImpl.java
0 → 100644
View file @
e436d07c
package
com
.
gic
.
auth
.
service
.
outer
.
impl
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.*
;
import
com.gic.auth.service.ResourceApiService
;
import
org.springframework.stereotype.Service
;
@Service
(
"resourceApiService"
)
public
class
ResourceApiServiceImpl
implements
ResourceApiService
{
@Override
public
ServiceResponse
<
Integer
>
saveOrUpdateResource
(
ResourceDTO
resourceDTO
)
{
return
ServiceResponse
.
success
(
1
);
}
@Override
public
ServiceResponse
<
Integer
>
delResource
(
Integer
resourceId
)
{
return
ServiceResponse
.
success
(
1
);
}
@Override
public
ServiceResponse
<
Page
<
ResourceDTO
>>
listResource
(
ResourceDTO
resourceDTO
,
Integer
pageNum
,
Integer
pageSize
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
ResourceDTO
>
getResource
(
Integer
resourceId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
SmsSignResourceDTO
>
getSmsResourceByUserId
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
ChannelResourceDTO
>
getChannelResourceByUserId
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
ChannelResourceDTO
>
getChannelResourceByUserIdContainDel
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
StoreResourceDTO
>
getStoreResourceByUserId
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
OrderResourceDTO
>
getOrderResourceByUserId
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Long
>
getUserResourceByUserId
(
Integer
userId
)
{
return
ServiceResponse
.
success
();
}
}
gic-platform-auth-service/src/main/resources/dubbo-gic-platform-auth-service.xml
View file @
e436d07c
...
...
@@ -50,6 +50,7 @@
<dubbo:service
interface=
"com.gic.auth.service.UserDataShowApiService"
ref=
"userDataShowApiService"
timeout=
"6000"
/>
<dubbo:service
interface=
"com.gic.auth.service.UserMoveApiService"
ref=
"userMoveApiService"
timeout=
"6000"
/>
<dubbo:service
interface=
"com.gic.auth.service.ResourceGroupApiService"
ref=
"resourceGroupApiService"
timeout=
"6000"
/>
<dubbo:service
interface=
"com.gic.auth.service.ResourceApiService"
ref=
"resourceApiService"
timeout=
"6000"
/>
<!--角色-->
<dubbo:reference
interface=
"com.gic.enterprise.service.EnterpriseApiService"
id=
"enterpriseApiService"
timeout=
"6000"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment