Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
60d53fda
Commit
60d53fda
authored
Jan 27, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加商品集合查询接口
parent
fd3720bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
TiktokController.java
...in/java/share/web/controller/system/TiktokController.java
+6
-0
OnlineQueryDto.java
.../src/main/java/share/system/domain/vo/OnlineQueryDto.java
+25
-0
TiktokService.java
...tem/src/main/java/share/system/service/TiktokService.java
+3
-0
TiktokServiceImpl.java
...ain/java/share/system/service/impl/TiktokServiceImpl.java
+6
-0
No files found.
share-front/src/main/java/share/web/controller/system/TiktokController.java
View file @
60d53fda
...
...
@@ -4,6 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
share.system.domain.vo.OnlineQueryDto
;
import
share.system.domain.vo.TiktokCouponDto
;
import
share.system.service.TiktokService
;
...
...
@@ -50,4 +51,9 @@ public class TiktokController {
return
tiktokService
.
poiQuery
(
tiktokCouponDto
);
}
@GetMapping
(
"/online/query"
)
public
Object
onlineQuery
(
OnlineQueryDto
onlineQueryDto
)
{
return
tiktokService
.
onlineQuery
(
onlineQueryDto
);
}
}
share-system/src/main/java/share/system/domain/vo/OnlineQueryDto.java
0 → 100644
View file @
60d53fda
package
share
.
system
.
domain
.
vo
;
import
lombok.Data
;
@Data
public
class
OnlineQueryDto
{
//第一页不传,之后用前一次返回的next_cursor传入进行翻页
private
String
cursor
;
//分页数量,不传默认为5,最大上限50
private
Integer
count
;
//筛选在线状态,1-在线 2-下线 3-封禁
private
Integer
status
;
//商家ID,传入时服务商须与该商家满足授权关系
private
String
accountId
;
//区分商品创建者的查询方式
//0 - 查询服务商/开发者创建的商品
//1 - 查询商家(account_id)创建的商品
private
Integer
goodsCreatorType
;
//是否查询商品全量关联门店
//设置为true时,分页数量最大上限为20
private
boolean
queryAllPoi
;
//新商品查询参数,仅支持ka自研开发者使用,当前参数生效时goods_creator_type参数不再生效
//1 - 可查询归属于ka自研的所有商品,包括非ka自研创建的商品
private
Integer
goodsQueryType
;
}
share-system/src/main/java/share/system/service/TiktokService.java
View file @
60d53fda
package
share
.
system
.
service
;
import
cn.hutool.json.JSONArray
;
import
share.system.domain.vo.OnlineQueryDto
;
import
share.system.domain.vo.TiktokCouponDto
;
import
java.util.List
;
...
...
@@ -17,4 +18,6 @@ public interface TiktokService {
String
certificateGet
(
TiktokCouponDto
tiktokCouponDto
);
Object
poiQuery
(
TiktokCouponDto
tiktokCouponDto
);
Object
onlineQuery
(
OnlineQueryDto
onlineQueryDto
);
}
share-system/src/main/java/share/system/service/impl/TiktokServiceImpl.java
View file @
60d53fda
...
...
@@ -16,6 +16,7 @@ import share.common.core.redis.RedisUtil;
import
share.common.enums.ErrorCodeEnum
;
import
share.common.enums.ReceiptRdeisEnum
;
import
share.common.enums.VerifyResultsEnum
;
import
share.system.domain.vo.OnlineQueryDto
;
import
share.system.domain.vo.TiktokCouponDto
;
import
share.system.service.TiktokService
;
...
...
@@ -205,6 +206,11 @@ public class TiktokServiceImpl implements TiktokService {
return
pois
;
}
@Override
public
Object
onlineQuery
(
OnlineQueryDto
onlineQueryDto
)
{
return
null
;
}
public
String
obtain
()
{
String
o
;
o
=
redisUtil
.
get
(
ReceiptRdeisEnum
.
TIKTOK_CLIENT_TOKEN
.
getValue
());
...
...
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