Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
9755aa0d
Commit
9755aa0d
authored
Aug 21, 2023
by
muhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 小程序接口
parent
08a645e4
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
119 additions
and
96 deletions
+119
-96
ch-dao/src/main/java/com/wwdz/ch/db/dao/FavoritesItemsRelationDao.java
...in/java/com/wwdz/ch/db/dao/FavoritesItemsRelationDao.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/FavoritesItemsDto.java
...o/src/main/java/com/wwdz/ch/db/dto/FavoritesItemsDto.java
+14
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/FavoritesRequestDto.java
.../java/com/wwdz/ch/db/dto/request/FavoritesRequestDto.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/FavoritesItemsRelationDaoImpl.java
...va/com/wwdz/ch/db/impl/FavoritesItemsRelationDaoImpl.java
+9
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.java
...a/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.java
+4
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.xml
...es/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.xml
+11
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
...c/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
+56
-84
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
...c/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
+18
-8
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/FavoritesService.java
...rc/main/java/com/wwdz/ch/wx/service/FavoritesService.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxFavoritesController.java
...c/main/java/com/wwdz/ch/wx/web/WxFavoritesController.java
+1
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/FavoritesItemsRelationDao.java
View file @
9755aa0d
...
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.db.dao;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.db.domain.FavoritesItemsRelation
;
import
com.wwdz.ch.db.dto.FavoritesItemsDto
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -19,4 +20,5 @@ public interface FavoritesItemsRelationDao {
boolean
isCollected
(
Long
userId
,
Long
itemId
);
long
countByFavoritesId
(
Long
favoritesId
);
List
<
Map
<
String
,
Object
>>
findItemIdByCount
();
List
<
FavoritesItemsDto
>
queryItemImages
(
Long
favoritesId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/FavoritesItemsDto.java
0 → 100644
View file @
9755aa0d
package
com.wwdz.ch.db.dto
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
FavoritesItemsDto
implements
Entity
{
private
Long
itemId
;
private
Date
addTime
;
private
String
images
;
private
String
topImage
;
}
ch-
wx-api/src/main/java/com/wwdz/ch/wx/entity
/request/FavoritesRequestDto.java
→
ch-
dao/src/main/java/com/wwdz/ch/db/dto
/request/FavoritesRequestDto.java
View file @
9755aa0d
package
com.wwdz.ch.
wx.entity
.request
;
package
com.wwdz.ch.
db.dto
.request
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/FavoritesItemsRelationDaoImpl.java
View file @
9755aa0d
...
...
@@ -5,6 +5,8 @@ import com.github.pagehelper.PageInfo;
import
com.wwdz.ch.db.dao.FavoritesItemsRelationDao
;
import
com.wwdz.ch.db.domain.FavoritesItemsRelation
;
import
com.wwdz.ch.db.domain.FavoritesItemsRelationExample
;
import
com.wwdz.ch.db.dto.FavoritesItemsDto
;
import
com.wwdz.ch.db.dto.request.FavoritesRequestDto
;
import
com.wwdz.ch.db.mapper.FavoritesItemsRelationMapper
;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -111,4 +113,11 @@ public class FavoritesItemsRelationDaoImpl implements FavoritesItemsRelationDao
public
List
<
Map
<
String
,
Object
>>
findItemIdByCount
()
{
return
favoritesItemsRelationMapper
.
selectItemIdByCount
();
}
@Override
public
List
<
FavoritesItemsDto
>
queryItemImages
(
Long
favoritesId
)
{
FavoritesRequestDto
favoritesRequestDto
=
new
FavoritesRequestDto
();
favoritesRequestDto
.
setId
(
favoritesId
);
return
favoritesItemsRelationMapper
.
selectItemImages
(
favoritesRequestDto
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.java
View file @
9755aa0d
...
...
@@ -2,6 +2,8 @@ package com.wwdz.ch.db.mapper;
import
com.wwdz.ch.db.domain.FavoritesItemsRelation
;
import
com.wwdz.ch.db.domain.FavoritesItemsRelationExample
;
import
com.wwdz.ch.db.dto.FavoritesItemsDto
;
import
com.wwdz.ch.db.dto.request.FavoritesRequestDto
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -53,4 +55,6 @@ public interface FavoritesItemsRelationMapper {
int
updateByExample
(
@Param
(
"record"
)
FavoritesItemsRelation
record
,
@Param
(
"example"
)
FavoritesItemsRelationExample
example
);
List
<
Map
<
String
,
Object
>>
selectItemIdByCount
();
List
<
FavoritesItemsDto
>
selectItemImages
(
FavoritesRequestDto
dto
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/FavoritesItemsRelationMapper.xml
View file @
9755aa0d
...
...
@@ -7,6 +7,12 @@
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
</resultMap>
<resultMap
id=
"ItemResultMap"
type=
"com.wwdz.ch.db.dto.FavoritesItemsDto"
>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"images"
jdbcType=
"VARCHAR"
property=
"images"
/>
<result
column=
"top_image"
jdbcType=
"VARCHAR"
property=
"topImage"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
...
...
@@ -247,4 +253,9 @@
<select
id=
"selectItemIdByCount"
resultType=
"java.util.Map"
>
select item_id,count(*) from favorites_items_relation group by item_id order by count(*) limit 20
</select>
<select
id=
"selectItemImages"
parameterType=
"com.wwdz.ch.db.dto.request.FavoritesRequestDto"
resultMap=
"ItemResultMap"
>
select a.item_id,a.add_time,b.images,b.top_image
from favorites_items_relation a left join item b on a.item_id = b.id
where a.favorites_id = ${id} order by a.add_time desc
</select>
</mapper>
\ No newline at end of file
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
View file @
9755aa0d
...
...
@@ -11,8 +11,9 @@ import com.wwdz.ch.db.domain.Favorites;
import
com.wwdz.ch.db.domain.FavoritesItemsRelation
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.UserItemsRelation
;
import
com.wwdz.ch.db.dto.FavoritesItemsDto
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.
wx.entity
.request.FavoritesRequestDto
;
import
com.wwdz.ch.
db.dto
.request.FavoritesRequestDto
;
import
com.wwdz.ch.wx.entity.request.ItemRequestDto
;
import
com.wwdz.ch.wx.entity.vo.AgentTranceResponseVo
;
import
com.wwdz.ch.wx.entity.vo.FavoritesResponseVo
;
...
...
@@ -92,32 +93,10 @@ public class FavoritesServiceImpl implements FavoritesService {
vo
.
setSort
(
favorites
.
getSort
());
vo
.
setDeleted
(
favorites
.
getDeleted
());
vo
.
setAddTime
(
favorites
.
getAddTime
());
vo
.
setImages
(
new
ArrayList
<>());
// 获取藏品的图片
List
<
FavoritesItemsRelation
>
favoritesItemsRelations
=
favoritesItemsRelationDao
.
listByFavoritesId
(
favorites
.
getId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
favoritesItemsRelations
))
{
CoinRequestDto
coinRequestDto
=
new
CoinRequestDto
();
coinRequestDto
.
setIds
(
favoritesItemsRelations
.
stream
()
.
map
(
FavoritesItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
()));
List
<
Item
>
items
=
itemDao
.
findListWithImages
(
coinRequestDto
);
items
=
items
.
stream
().
filter
(
s
->
!
s
.
getIsDeleted
()).
filter
(
s
->
StringUtils
.
isNotBlank
(
s
.
getImages
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
items
))
{
List
<
String
>
images
=
new
ArrayList
<>();
if
(
items
.
size
()
<=
4
)
{
for
(
Item
item
:
items
)
{
String
[]
image
=
item
.
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
else
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
String
[]
image
=
items
.
get
(
i
).
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
vo
.
setImages
(
images
);
}
}
// 设置封面图
vo
.
setImages
(
getFavoritesImage
(
favorites
.
getId
()));
vo
.
setUpdateTime
(
favorites
.
getUpdateTime
());
// 设置收藏数
vo
.
setCount
(
favoritesItemsRelationDao
.
countByFavoritesId
(
favorites
.
getId
()));
agentTranceResponseVo
.
setDetail
(
vo
);
list
.
add
(
agentTranceResponseVo
);
...
...
@@ -145,32 +124,10 @@ public class FavoritesServiceImpl implements FavoritesService {
vo
.
setSort
(
favorites
.
getSort
());
vo
.
setDeleted
(
favorites
.
getDeleted
());
vo
.
setAddTime
(
favorites
.
getAddTime
());
vo
.
setImages
(
new
ArrayList
<>());
// 获取藏品的图片
List
<
FavoritesItemsRelation
>
favoritesItemsRelations
=
favoritesItemsRelationDao
.
listByFavoritesId
(
favorites
.
getId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
favoritesItemsRelations
))
{
CoinRequestDto
coinRequestDto
=
new
CoinRequestDto
();
coinRequestDto
.
setIds
(
favoritesItemsRelations
.
stream
()
.
map
(
FavoritesItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
()));
List
<
Item
>
items
=
itemDao
.
findListWithImages
(
coinRequestDto
);
items
=
items
.
stream
().
filter
(
s
->
!
s
.
getIsDeleted
()).
filter
(
s
->
StringUtils
.
isNotBlank
(
s
.
getImages
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
items
))
{
List
<
String
>
images
=
new
ArrayList
<>();
if
(
items
.
size
()
<=
4
)
{
for
(
Item
item
:
items
)
{
String
[]
image
=
item
.
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
else
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
String
[]
image
=
items
.
get
(
i
).
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
vo
.
setImages
(
images
);
}
}
// 设置封面图
vo
.
setImages
(
getFavoritesImage
(
favorites
.
getId
()));
vo
.
setUpdateTime
(
favorites
.
getUpdateTime
());
// 设置收藏数
vo
.
setCount
(
favoritesItemsRelationDao
.
countByFavoritesId
(
favorites
.
getId
()));
result
.
add
(
vo
);
}
...
...
@@ -251,32 +208,10 @@ public class FavoritesServiceImpl implements FavoritesService {
vo
.
setDeleted
(
favorites
.
getDeleted
());
vo
.
setAddTime
(
favorites
.
getAddTime
());
vo
.
setUpdateTime
(
favorites
.
getUpdateTime
());
// 设置收藏数
vo
.
setCount
(
favoritesItemsRelationDao
.
countByFavoritesId
(
favorites
.
getId
()));
vo
.
setImages
(
new
ArrayList
<>());
// 获取藏品的图片
List
<
FavoritesItemsRelation
>
favoritesItemsRelations
=
favoritesItemsRelationDao
.
listByFavoritesId
(
favorites
.
getId
(),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
favoritesItemsRelations
))
{
CoinRequestDto
coinRequestDto
=
new
CoinRequestDto
();
coinRequestDto
.
setIds
(
favoritesItemsRelations
.
stream
()
.
map
(
FavoritesItemsRelation:
:
getItemId
).
collect
(
Collectors
.
toList
()));
List
<
Item
>
items
=
itemDao
.
findListWithImages
(
coinRequestDto
);
items
=
items
.
stream
().
filter
(
s
->
!
s
.
getIsDeleted
()).
filter
(
s
->
StringUtils
.
isNotBlank
(
s
.
getImages
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
items
))
{
List
<
String
>
images
=
new
ArrayList
<>();
if
(
items
.
size
()
<=
4
)
{
for
(
Item
item
:
items
)
{
String
[]
image
=
item
.
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
else
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
String
[]
image
=
items
.
get
(
i
).
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
vo
.
setImages
(
images
);
}
}
// 设置封面图
vo
.
setImages
(
getFavoritesImage
(
favorites
.
getId
()));
logger
.
info
(
"【请求结束】查看收藏册详情成功"
);
return
Result
.
success
(
vo
);
}
catch
(
Exception
e
)
{
...
...
@@ -494,11 +429,27 @@ public class FavoritesServiceImpl implements FavoritesService {
private
Map
<
String
,
Object
>
getImage
(
Item
item
)
{
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
String
[]
image
=
item
.
getImages
().
split
(
";"
);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"url"
,
""
);
homePageMap
.
put
(
"type"
,
2
);
homePageMap
.
put
(
"width"
,
"0"
);
homePageMap
.
put
(
"height"
,
"0"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getTopImage
()))
{
if
(
item
.
getTopImage
().
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
item
.
getTopImage
());
homePageMap
.
put
(
"url"
,
item
.
getTopImage
());
homePageMap
.
put
(
"type"
,
2
);
}
}
else
{
if
(
StringUtils
.
isNotBlank
(
item
.
getImages
()))
{
String
[]
image
=
item
.
getImages
().
split
(
";"
);
homePageMap
.
put
(
"url"
,
image
[
0
]);
if
(
image
[
0
].
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
image
[
0
]);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"type"
,
2
);
}
}
}
if
(
StringUtils
.
isNotBlank
(
item
.
getVideos
()))
{
String
[]
vedioImage
=
item
.
getVideos
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
...
...
@@ -507,12 +458,6 @@ public class FavoritesServiceImpl implements FavoritesService {
homePageMap
.
put
(
"url"
,
video
[
1
]);
homePageMap
.
put
(
"type"
,
1
);
}
}
else
{
if
(
image
[
0
].
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
image
[
0
]);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"type"
,
2
);
}
}
return
homePageMap
;
}
...
...
@@ -551,4 +496,31 @@ public class FavoritesServiceImpl implements FavoritesService {
}
return
StringUtil
.
formatAmount
(
priceString
);
}
private
List
<
String
>
getFavoritesImage
(
Long
id
)
{
List
<
String
>
images
=
new
ArrayList
<>();
List
<
FavoritesItemsDto
>
favoritesItemsDtos
=
favoritesItemsRelationDao
.
queryItemImages
(
id
);
if
(
CollectionUtils
.
isNotEmpty
(
favoritesItemsDtos
))
{
if
(
favoritesItemsDtos
.
size
()
<=
4
)
{
for
(
FavoritesItemsDto
favoritesItemsDto
:
favoritesItemsDtos
)
{
if
(
StringUtils
.
isNotBlank
(
favoritesItemsDto
.
getTopImage
()))
{
images
.
add
(
favoritesItemsDto
.
getTopImage
());
}
else
{
String
[]
image
=
favoritesItemsDto
.
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
}
else
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
if
(
StringUtils
.
isNotBlank
(
favoritesItemsDtos
.
get
(
i
).
getTopImage
()))
{
images
.
add
(
favoritesItemsDtos
.
get
(
i
).
getTopImage
());
}
else
{
String
[]
image
=
favoritesItemsDtos
.
get
(
i
).
getImages
().
split
(
";"
);
images
.
add
(
image
[
0
]);
}
}
}
}
return
images
;
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
View file @
9755aa0d
...
...
@@ -270,11 +270,27 @@ public class FootPrintServiceImpl implements FootPrintService {
private
Map
<
String
,
Object
>
getImage
(
Item
item
)
{
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
String
[]
image
=
item
.
getImages
().
split
(
";"
);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"url"
,
""
);
homePageMap
.
put
(
"type"
,
2
);
homePageMap
.
put
(
"width"
,
"0"
);
homePageMap
.
put
(
"height"
,
"0"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getTopImage
()))
{
if
(
item
.
getTopImage
().
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
item
.
getTopImage
());
homePageMap
.
put
(
"url"
,
item
.
getTopImage
());
homePageMap
.
put
(
"type"
,
2
);
}
}
else
{
if
(
StringUtils
.
isNotBlank
(
item
.
getImages
()))
{
String
[]
image
=
item
.
getImages
().
split
(
";"
);
homePageMap
.
put
(
"url"
,
image
[
0
]);
if
(
image
[
0
].
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
image
[
0
]);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"type"
,
2
);
}
}
}
if
(
StringUtils
.
isNotBlank
(
item
.
getVideos
()))
{
String
[]
vedioImage
=
item
.
getVideos
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
...
...
@@ -283,12 +299,6 @@ public class FootPrintServiceImpl implements FootPrintService {
homePageMap
.
put
(
"url"
,
video
[
1
]);
homePageMap
.
put
(
"type"
,
1
);
}
}
else
{
if
(
image
[
0
].
contains
(
"_"
))
{
homePageMap
=
getImageMap
(
image
[
0
]);
homePageMap
.
put
(
"url"
,
image
[
0
]);
homePageMap
.
put
(
"type"
,
2
);
}
}
return
homePageMap
;
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
9755aa0d
...
...
@@ -403,6 +403,7 @@ public class ItemServiceImpl implements ItemService {
item
.
setName
(
dto
.
getName
());
item
.
setCid
(
dto
.
getCid
());
item
.
setImages
(
dto
.
getImages
());
item
.
setVideos
(
""
);
if
(
StringUtils
.
isNotBlank
(
dto
.
getVideos
()))
{
item
.
setVideos
(
getVediosImage
(
dto
.
getVideos
()));
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
View file @
9755aa0d
...
...
@@ -17,7 +17,7 @@ import com.wwdz.ch.db.domain.User;
import
com.wwdz.ch.wx.constant.CacheCodeConstants
;
import
com.wwdz.ch.wx.dao.UserInfo
;
import
com.wwdz.ch.wx.dao.UserToken
;
import
com.wwdz.ch.
wx.entity
.request.FavoritesRequestDto
;
import
com.wwdz.ch.
db.dto
.request.FavoritesRequestDto
;
import
com.wwdz.ch.wx.entity.request.UserRequestDto
;
import
com.wwdz.ch.wx.service.FavoritesService
;
import
com.wwdz.ch.wx.service.UserService
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/FavoritesService.java
View file @
9755aa0d
...
...
@@ -2,7 +2,7 @@ package com.wwdz.ch.wx.service;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.wx.entity.request.ItemRequestDto
;
import
com.wwdz.ch.
wx.entity
.request.FavoritesRequestDto
;
import
com.wwdz.ch.
db.dto
.request.FavoritesRequestDto
;
public
interface
FavoritesService
{
Result
addDefault
(
FavoritesRequestDto
dto
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxFavoritesController.java
View file @
9755aa0d
package
com.wwdz.ch.wx.web
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.
wx.entity
.request.FavoritesRequestDto
;
import
com.wwdz.ch.
db.dto
.request.FavoritesRequestDto
;
import
com.wwdz.ch.wx.entity.request.ItemRequestDto
;
import
com.wwdz.ch.wx.entity.request.KlDataRequestDto
;
import
com.wwdz.ch.wx.service.FavoritesService
;
...
...
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