mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 11:47:36 +08:00
Format the function receiver name
This commit is contained in:
parent
243b15d87e
commit
ccbbb57a13
@ -353,9 +353,9 @@ func (h *HTTPRuleRewriteDaoTmpl) CreateOrUpdateHTTPRuleRewriteInBatch(httpRuleRe
|
||||
}
|
||||
|
||||
// ListByHTTPRuleID -
|
||||
func (c *HTTPRuleRewriteDaoTmpl) ListByHTTPRuleID(httpRuleID string) ([]*model.HTTPRuleRewrite, error) {
|
||||
func (h *HTTPRuleRewriteDaoTmpl) ListByHTTPRuleID(httpRuleID string) ([]*model.HTTPRuleRewrite, error) {
|
||||
var rewrites []*model.HTTPRuleRewrite
|
||||
if err := c.DB.Where("http_rule_id = ?", httpRuleID).Find(&rewrites).Error; err != nil {
|
||||
if err := h.DB.Where("http_rule_id = ?", httpRuleID).Find(&rewrites).Error; err != nil {
|
||||
if err == gorm.ErrRecordNotFound {
|
||||
return rewrites, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user