修复 Context 改造后的编译问题
This commit is contained in:
@@ -19,7 +19,7 @@ func NewHandler(service *Service) *Handler {
|
||||
}
|
||||
|
||||
func (h *Handler) List(c *gin.Context) {
|
||||
items, err := h.service.List(c.Request.Context(), )
|
||||
items, err := h.service.List(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -28,7 +28,7 @@ func (h *Handler) List(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) PublishOptions(c *gin.Context) {
|
||||
options, err := h.service.PublishOptions(c.Request.Context(), )
|
||||
options, err := h.service.PublishOptions(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -37,7 +37,7 @@ func (h *Handler) PublishOptions(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) SalePriceConfig(c *gin.Context) {
|
||||
config, err := h.service.SalePriceConfig(c.Request.Context(), )
|
||||
config, err := h.service.SalePriceConfig(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -46,7 +46,7 @@ func (h *Handler) SalePriceConfig(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) OrderAgreements(c *gin.Context) {
|
||||
agreements, err := h.service.OrderAgreements(c.Request.Context(), )
|
||||
agreements, err := h.service.OrderAgreements(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -55,7 +55,7 @@ func (h *Handler) OrderAgreements(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) ListingPublishAgreements(c *gin.Context) {
|
||||
agreements, err := h.service.ListingPublishAgreements(c.Request.Context(), )
|
||||
agreements, err := h.service.ListingPublishAgreements(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -64,7 +64,7 @@ func (h *Handler) ListingPublishAgreements(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) PostRentalNotice(c *gin.Context) {
|
||||
notice, err := h.service.PostRentalNotice(c.Request.Context(), )
|
||||
notice, err := h.service.PostRentalNotice(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -73,7 +73,7 @@ func (h *Handler) PostRentalNotice(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) HomeAnnouncements(c *gin.Context) {
|
||||
announcements, err := h.service.HomeAnnouncements(c.Request.Context(), )
|
||||
announcements, err := h.service.HomeAnnouncements(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
@@ -82,7 +82,7 @@ func (h *Handler) HomeAnnouncements(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) HomeConfig(c *gin.Context) {
|
||||
config, err := h.service.HomeConfig(c.Request.Context(), )
|
||||
config, err := h.service.HomeConfig(c.Request.Context())
|
||||
if err != nil {
|
||||
writeConfigError(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user