添加订单押金暂扣与归还
This commit is contained in:
@@ -74,6 +74,14 @@ func (h *Handler) AdminResetHandoff(c *gin.Context) {
|
||||
h.adminAction(c, h.service.AdminResetHandoff, gin.H{"reset": true})
|
||||
}
|
||||
|
||||
func (h *Handler) AdminHoldDeposit(c *gin.Context) {
|
||||
h.adminAction(c, h.service.AdminHoldDeposit, gin.H{"held": true})
|
||||
}
|
||||
|
||||
func (h *Handler) AdminReleaseDeposit(c *gin.Context) {
|
||||
h.adminAction(c, h.service.AdminReleaseDeposit, gin.H{"released": true})
|
||||
}
|
||||
|
||||
func (h *Handler) AdminRefund(c *gin.Context) {
|
||||
orderID, ok := parseID(c)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user