You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
959 B
40 lines
959 B
package dao |
|
|
|
import ( |
|
"context" |
|
"net/url" |
|
"strconv" |
|
|
|
"go-common/library/ecode" |
|
"go-common/library/log" |
|
"go-common/library/net/metadata" |
|
) |
|
|
|
const ( |
|
_workFlowAppealDelete = "/x/internal/workflow/appeal/v3/delete" |
|
) |
|
|
|
// WorkFlowAppealDelete . |
|
func (d *Dao) WorkFlowAppealDelete(c context.Context, bid, oid, subtitleID int64) (err error) { |
|
var ( |
|
res struct { |
|
Code int `json:"code"` |
|
Message string `json:"message"` |
|
} |
|
params = url.Values{} |
|
ip = metadata.String(c, metadata.RemoteIP) |
|
) |
|
params.Set("bid", strconv.FormatInt(bid, 10)) |
|
params.Set("oid", strconv.FormatInt(oid, 10)) |
|
params.Set("eid", strconv.FormatInt(subtitleID, 10)) |
|
if err = d.httpCli.Post(c, d.workFlowURI, ip, params, &res); err != nil { |
|
log.Error("WorkFlowTagList(params:%v),error(%v)", params, err) |
|
return |
|
} |
|
if err = ecode.Int(res.Code); err != ecode.OK { |
|
log.Error("WorkFlowTagList(params:%v),error(%v)", params, err) |
|
return |
|
} |
|
err = nil |
|
return |
|
}
|
|
|