perm.go 526 B

123456789101112131415
  1. package entity
  2. import "time"
  3. type Perm struct {
  4. Id int `json:"id,omitempty" db:"id,omitempty"`
  5. Path string `json:"path,omitempty" db:"path,omitempty"`
  6. // 请求方式
  7. Method string `json:"method,omitempty" db:"method,,omitempty"`
  8. // 名字
  9. Name string `json:"name,omitempty" db:"name,omitempty"`
  10. CreateAt time.Time `json:"create_at,omitempty" db:"create_at,omitempty"`
  11. UpdateAt time.Time `json:"update_at,omitempty" db:"update_at,omitempty"`
  12. DeleteAt *time.Time `json:"-" db:"delete_at,omitempty"`
  13. }