12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- package final
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type WorkAcceptanceLog struct {
- Id int64 `json:"id" prop:"add:false"`
- WorkId int64 `json:"work_id"`
- CreatedId int64 `json:"created_id"`
- Context string `json:"context"`
- Pictures string `json:"pictures"`
- CreatedAt string `json:"created_at"`
- Type string `json:"type"`
- db.BaseModel
- }
- func (WorkAcceptanceLog) TableName() string {
- return "zy_work_acceptance_log"
- }
- func (o WorkAcceptanceLog) GetOne(where map[string]interface{}, fields []string, retVal interface{}) (*WorkAcceptanceLog, error) {
- if retVal == nil {
- var matBidOrder *WorkAcceptanceLog
- err := db.GetOne(o.TableName(), where, fields, &matBidOrder)
- return matBidOrder, err
- } else {
- err := db.GetOne(o.TableName(), where, fields, retVal)
- return nil, err
- }
- }
- func (o WorkAcceptanceLog) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (WorkAcceptanceLog) ListAfter(c *gin.Context, data map[string]interface{}, list []map[string]interface{}) []map[string]interface{} {
- return list
- }
- func (WorkAcceptanceLog) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (WorkAcceptanceLog) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (WorkAcceptanceLog) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (WorkAcceptanceLog) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (WorkAcceptanceLog) Page() bool {
- return false
- }
- func (WorkAcceptanceLog) Count() bool {
- return true
- }
- func (o WorkAcceptanceLog) LeftJoin(data map[string]interface{}, s *db.Select) []db.JoinModel {
- return []db.JoinModel{}
- }
|