package models func (m *Post) PayPrice() int64 { return m.Price * int64(m.Discount) / 100 }