Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhoneController ¶
type PhoneController struct {
beego.Controller
}
Operations about Phone
func (*PhoneController) Get ¶
func (p *PhoneController) Get()
@Title Login @Description 手机号码固话号码标记查询 @Param phonenumber query string true "电话号码, 053266114000 18870208731 051288178411" @Param from query string false "标记来源渠道不选为所有渠道,可选360shoujiweishi,baidushoujiweishi,sogouhaomatong" @Success 200 {string} 返回json @Failure 403 失败 @router /tag [get]
type UserController ¶
type UserController struct {
beego.Controller
}
Operations about Users
func (*UserController) Delete ¶
func (u *UserController) Delete()
@Title Delete @Description delete the user @Param uid path string true "The uid you want to delete" @Success 200 {string} delete success! @Failure 403 uid is empty @router /:uid [delete]
func (*UserController) Get ¶
func (u *UserController) Get()
@Title Get @Description get user by uid @Param uid path string true "The key for staticblock" @Success 200 {object} models.User @Failure 403 :uid is empty @router /:uid [get]
func (*UserController) GetAll ¶
func (u *UserController) GetAll()
@Title GetAll @Description get all Users @Success 200 {object} models.User @router / [get]
func (*UserController) Login ¶
func (u *UserController) Login()
@Title Login @Description Logs user into the system @Param username query string true "The username for login" @Param password query string true "The password for login" @Success 200 {string} login success @Failure 403 user not exist @router /login [get]
func (*UserController) Logout ¶
func (u *UserController) Logout()
@Title logout @Description Logs out current logged in user session @Success 200 {string} logout success @router /logout [get]
func (*UserController) Post ¶
func (u *UserController) Post()
@Title CreateUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*UserController) Put ¶
func (u *UserController) Put()
@Title Update @Description update the user @Param uid path string true "The uid you want to update" @Param body body models.User true "body for user content" @Success 200 {object} models.User @Failure 403 :uid is not int @router /:uid [put]