package
0.0.0-20200609095611-bd7d7c7ccbe9
Repository: https://github.com/alienong/developkit.git
Documentation: pkg.go.dev

# Functions

* @description: Attach QueryParam's Conditionss to session @param session: xorm.Session @param q: QueryParam @return: sql,count,error */.
* @description: NewCRUD @param db: Xorm Engine @param c: ICRUDEvent @return: CRUDService */.
* @description: NewQuery @param : nil @return: QueryParam */.

# Variables

SQL injection.

# Structs

* @description: Condition @attribute Field: Field @attribute Relation: "and", "or" @attribute Operate: "like" , ">=" , "<=" , ">", "<", "nil" , "!=" , "in", "between" @attribute Value: Value */.
* @description: Struct Set ICRUDEvent Interface,Can Implement One or All Method s */.
* @description: CRUDService @attribute db: Xorm DB Engine @attribute session: Xorm DB Engine Session @attribute event: CRUDEvent */.
* @description: QueryParam @attribute Size: Query Records Count @attribute Index: Query Records From Which Start @attribute Count: Is Calculate The Count of Records @attribute Conditions: Condition List @attribute Order: Orders Map,-1 Decs,1 Asc @attribute Fields: Select Which Columns @attribute Params: Some Other Params */.

# Interfaces

* @description: ICRUDEvent Interface,Can Implement One or All Methods @method BeforeInsert: the method before insert @method AfterInsert: the method after insert @method BeforeUpdate: the method before update @method AfterUpdate: the method after update @method BeforeDelete: the method before update @method AfterDelete: the method after update */.
* @description: ICRUDService Interface,Must Implement These Methods @method Insert: C @method Update: U @method Delete: D @method Deletes: D @method Get: Get One Record @method Query: R */.