1234567891011121314151617181920212223 |
- package model
- type SystemPastureMenu struct {
- Id int64 `json:"id"`
- PastureId int64 `json:"pastureId"`
- MenuId int64 `json:"menuId"`
- CreatedAt int64 `json:"createdAt"`
- UpdatedAt int64 `json:"updatedAt"`
- }
- func (s *SystemPastureMenu) TableName() string {
- return "system_pasture_menu"
- }
- type SystemPastureMenuSlice []*SystemPastureMenu
- func (s SystemPastureMenuSlice) GetMenuIds() []int64 {
- res := make([]int64, 0)
- for _, v := range s {
- res = append(res, v.MenuId)
- }
- return res
- }
|