feat 修改sellerId类型

This commit is contained in:
timerzz 2024-08-31 18:31:24 +08:00
parent eb8632ab44
commit a6c9c0b448
4 changed files with 18 additions and 18 deletions

View File

@ -26,11 +26,11 @@ func NewProviderArticleApi(db *gorm.DB) ProviderArticleApi {
// ******************GET // ******************GET
type GetProviderArticleQuery struct { type GetProviderArticleQuery struct {
ID uint `query:"id"` ID uint `query:"id"`
Brand v2.Brand `query:"brand"` Brand v2.Brand `query:"brand"`
Pid string `query:"pid"` Pid string `query:"pid"`
ProviderId string `query:"providerId"` ProviderId v2.ProviderId `query:"providerId"`
SkuId string `query:"skuId"` SkuId string `query:"skuId"`
} }
func NewGetProviderArticleQuery() *GetProviderArticleQuery { func NewGetProviderArticleQuery() *GetProviderArticleQuery {
@ -50,7 +50,7 @@ func (g *GetProviderArticleQuery) SetPid(pid string) *GetProviderArticleQuery {
return g return g
} }
func (g *GetProviderArticleQuery) SetProviderId(providerId string) *GetProviderArticleQuery { func (g *GetProviderArticleQuery) SetProviderId(providerId v2.ProviderId) *GetProviderArticleQuery {
g.ProviderId = providerId g.ProviderId = providerId
return g return g
} }

View File

@ -30,9 +30,9 @@ type providerApi struct {
} }
type ListProviderQuery struct { type ListProviderQuery struct {
ID uint `query:"id"` ID uint `query:"id"`
ProviderId string `query:"providerId"` ProviderId v2.ProviderId `query:"providerId"`
Keyword string `query:"keyword"` Keyword string `query:"keyword"`
} }
func (g *ListProviderQuery) Scope(db *gorm.DB) *gorm.DB { func (g *ListProviderQuery) Scope(db *gorm.DB) *gorm.DB {

View File

@ -23,11 +23,11 @@ func NewSellerArticleApi(db *gorm.DB) SellerArticleApi {
} }
type GetSellerArticleQuery struct { type GetSellerArticleQuery struct {
ID uint `query:"id"` ID uint `query:"id"`
Brand v2.Brand `query:"brand"` Brand v2.Brand `query:"brand"`
Pid string `query:"pid"` Pid string `query:"pid"`
SellerId string `query:"sellerId"` SellerId v2.SellerId `query:"sellerId"`
SkuId string `query:"skuId"` SkuId string `query:"skuId"`
} }
func NewGetSellerArticleQuery() *GetSellerArticleQuery { func NewGetSellerArticleQuery() *GetSellerArticleQuery {
@ -47,7 +47,7 @@ func (g *GetSellerArticleQuery) SetPid(pid string) *GetSellerArticleQuery {
g.Pid = pid g.Pid = pid
return g return g
} }
func (g *GetSellerArticleQuery) SetSellerId(sellerId string) *GetSellerArticleQuery { func (g *GetSellerArticleQuery) SetSellerId(sellerId v2.SellerId) *GetSellerArticleQuery {
g.SellerId = sellerId g.SellerId = sellerId
return g return g
} }

View File

@ -30,9 +30,9 @@ type sellerApi struct {
} }
type ListSellerQuery struct { type ListSellerQuery struct {
ID uint `query:"id"` ID uint `query:"id"`
SellerId string `query:"sellerId"` SellerId v2.SellerId `query:"sellerId"`
Keyword string `query:"keyword"` Keyword string `query:"keyword"`
} }
func (g *ListSellerQuery) Scope(db *gorm.DB) *gorm.DB { func (g *ListSellerQuery) Scope(db *gorm.DB) *gorm.DB {