1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package final
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type FinalSupplierAccount struct {
- ID int64 `json:"id" prop:"add:false"`
- SupplierId int64 `json:"supplierId" label:"材料商ID" type:"int" prop:"add edit" search:"="`
- AccountName string `json:"account_name" label:"开户名" type:"string" prop:"add edit" search:"like"`
- AccountBank string `json:"account_bank" label:"开户行" type:"string" prop:"add edit" search:"like"`
- AccountNo string `json:"account_no" label:"账号" type:"string" prop:"add edit" search:"like"`
- OrderAt int64 `json:"order_at" prop:"add:false select:false"`
- DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
- CreatedAt int64 `json:"created_at" prop:"add:false"`
- UpdatedAt int64 `json:"updated_at" prop:"add:false"`
- db.BaseModel
- }
- func (FinalSupplierAccount) TableName() string {
- return "zy_final_supplier_account"
- }
- func (model FinalSupplierAccount) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (FinalSupplierAccount) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (FinalSupplierAccount) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (FinalSupplierAccount) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (FinalSupplierAccount) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (FinalSupplierAccount) Page() bool {
- return false
- }
- func (FinalSupplierAccount) Count() bool {
- return true
- }
- func (model FinalSupplierAccount) LeftJoin(data map[string]interface{}, s *db.Select) []db.JoinModel {
- return []db.JoinModel{}
- }
|