github.com/eframework-cn/EP.GO.UTIL@v1.0.0/xobj/xobj.go (about)

     1  //-----------------------------------------------------------------------//
     2  //                     GNU GENERAL PUBLIC LICENSE                        //
     3  //                        Version 2, June 1991                           //
     4  //                                                                       //
     5  // Copyright (C) EFramework, https://eframework.cn, All rights reserved. //
     6  // Everyone is permitted to copy and distribute verbatim copies          //
     7  // of this license document, but changing it is not allowed.             //
     8  //                   SEE LICENSE.md FOR MORE DETAILS.                    //
     9  //-----------------------------------------------------------------------//
    10  
    11  // 面向对象编程.
    12  package xobj
    13  
    14  // 对象基类
    15  type OBJECT struct {
    16  	CHILD interface{} `orm:"-" json:"-"` // 实例指针对象
    17  }
    18  
    19  // 构造函数
    20  //	CHILD: 实例指针对象
    21  func (this *OBJECT) CTOR(CHILD interface{}) {
    22  	this.CHILD = CHILD
    23  }