forked from ebhomengo/niki
20 lines
804 B
Go
20 lines
804 B
Go
package adminserviceparam
|
|
|
|
import "git.gocasts.ir/ebhomengo/niki/entity"
|
|
|
|
type RegisterRequest struct {
|
|
FirstName *string `json:"first_name" example:"miaad"`
|
|
LastName *string `json:"last_name" example:"shahi"`
|
|
Password *string `json:"password" example:"Abc123456"`
|
|
PhoneNumber *string `json:"phone_number" example:"09183723447"`
|
|
Role *entity.AdminRole `json:"role" example:"2"`
|
|
Description *string `json:"description" example:"this is a description"`
|
|
Email *string `json:"email" example:"miaad.66@gmail.com"`
|
|
Gender *entity.Gender `json:"gender" example:"1"`
|
|
Status *entity.AdminStatus `json:"status" example:"1"`
|
|
}
|
|
|
|
type RegisterResponse struct {
|
|
Admin entity.Admin `json:"admin"`
|
|
}
|