title: beego api post insert data
body: <p>First of all. I use postman to POST data. How to take data from the postman key. 
  It works by using this way (in my code I set it by myself).</p>
  
  <p>I want to get firstname, lastname, email in form-data.
  I want to use as below.</p>
  
  <pre><code>func InsertOneUser(user User) *User {
     o := orm.NewOrm()
     qs := o.QueryTable(new(User))
     i, _ := qs.PrepareInsert()
     var u User
     user.FirstName = "firstname"                          &lt;----- this
     user.LastName = "lastname"                            &lt;----- this
     user.Email = "something@yahoo.com"                    &lt;----- this
     user.Password, _ = hashPassword(user.Password)
     user.RegDate = time.Now()
     id, err := i.Insert(&amp;user)
     return &amp;u
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/MDb7G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MDb7G.png" alt="enter image description here"></a></p>