区分线下提号账号来源

This commit is contained in:
yml2213
2026-07-27 11:13:31 +08:00
parent 8af7333969
commit 66af387b4e
11 changed files with 483 additions and 36 deletions
+6 -2
View File
@@ -148,9 +148,13 @@ func (h *Handler) Detail(c *gin.Context) {
// AvailableListings 可提号的 listing 搜索(管理员)
func (h *Handler) AvailableListings(c *gin.Context) {
keyword := strings.TrimSpace(c.Query("keyword"))
page, pageSize := parsePagination(c)
result, err := h.service.ListAvailableListings(c.Request.Context(), keyword, page, pageSize)
result, err := h.service.ListAvailableListings(c.Request.Context(), AvailableListingQuery{
Keyword: strings.TrimSpace(c.Query("keyword")),
SourceType: strings.TrimSpace(c.Query("source_type")),
Page: page,
PageSize: pageSize,
})
if err != nil {
writePickupError(c, err)
return