This commit is contained in:
5
backend_v1/database/models/post.go
Normal file
5
backend_v1/database/models/post.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package models
|
||||
|
||||
func (m *Post) PayPrice() int64 {
|
||||
return m.Price * int64(m.Discount) / 100
|
||||
}
|
||||
Reference in New Issue
Block a user