You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
487 B
16 lines
487 B
package dao |
|
|
|
import "go-common/app/admin/ep/melloi/model" |
|
|
|
//AddClientMoni add ClientMoni |
|
func (d *Dao) AddClientMoni(clientMoni *model.ClientMoni) (clientMoniID int, err error) { |
|
err = d.DB.Create(clientMoni).Error |
|
clientMoniID = clientMoni.ID |
|
return |
|
} |
|
|
|
//QueryClientMoni query ClientMoni |
|
func (d *Dao) QueryClientMoni(clientMoni *model.ClientMoni) (clm []*model.ClientMoni, err error) { |
|
err = d.DB.Table(model.ClientMoni{}.TableName()).Where(clientMoni).Find(&clm).Error |
|
return |
|
}
|
|
|