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.
 
 
 

29 lines
511 B

package http
import (
"go-common/app/interface/main/growup/model"
"go-common/library/ecode"
"go-common/library/net/http/blademaster"
)
func upNewbieLetter(c *blademaster.Context) {
iMid, ok := c.Get("mid")
if !ok {
c.JSON(nil, ecode.NoLogin)
return
}
req := new(model.NewbieLetterReq)
if err := c.Bind(req); err != nil {
c.JSON(nil, ecode.RequestErr)
return
}
req.Mid = iMid.(int64)
res, err := newbieSvr.Letter(c, req)
if err != nil {
c.JSON(nil, err)
return
}
c.JSON(res, nil)
}