talent_http_result.go 380 B

12345678910111213141516171819
  1. package youngee_task_service
  2. import "github.com/gogf/gf/os/glog"
  3. type TalentHttpResult struct {
  4. Code int `json:"code"`
  5. Msg string `json:"msg"`
  6. Data interface{} `json:"data"`
  7. }
  8. func New(code int, msg string, data *interface{}) *TalentHttpResult {
  9. t := &TalentHttpResult{code, msg, data}
  10. if code != 0 {
  11. glog.DefaultLogger().Error()
  12. } else {
  13. }
  14. return t
  15. }