12345678910111213141516171819202122232425262728293031323334 |
- package dao
- import (
- "context"
- "fmt"
- "go-common/library/ecode"
- "go-common/library/log"
- "net/url"
- )
- const (
- _frozenChange = "/internal/v1/user/frozenChange"
- )
- // OldFrozenChange .
- func (d *Dao) OldFrozenChange(c context.Context, mid int64) (err error) {
- params := url.Values{}
- params.Set("mid", fmt.Sprintf("%v", mid))
- params.Set("status", "0")
- rel := new(struct {
- Code int64 `json:"code"`
- Data string `json:"data"`
- })
- if err = d.client.Get(c, d.c.Property.VipURL+_frozenChange, "127.0.0.1", params, rel); err != nil {
- log.Error("send error(%v) url(%v)", err, d.c.Property.VipURL+_frozenChange+_frozenChange)
- return
- }
- if rel != nil && rel.Code == int64(ecode.OK.Code()) {
- return
- }
- err = ecode.VipJavaAPIErr
- return
- }
|