Zhiqim Admin(简版的管理台)是从知启蒙管理台分离出来,保留系统参数表、系统菜单表、操作员、操作日志,去除组织、部门、角色等复杂权限功能,仅保留操作员独立权限功能。系统设计时保留ZmrSessionUser和ZmrOperator类,方便以后升级到知启蒙管理台。
森中灵 最后提交于6月前 整理V8.0.6
ZmrAvatar.java3KB
/*
* 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦]
*
* https://zhiqim.org/project/zhiqim_components/zhiqim_admin.htm
*
* Zhiqim Admin is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package org.zhiqim.manager.dbo;
import java.io.Serializable;
import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;
/**
* 系统头像表 对应表《ZMR_AVATAR》
*/
@AnAlias("ZmrAvatar")
@AnNew
@AnTable(table="ZMR_AVATAR", key="AVATAR_ID", type="InnoDB")
public class ZmrAvatar implements Serializable
{
private static final long serialVersionUID = 1L;
@AnTableField(column="AVATAR_ID", type="long", notNull=true) private long avatarId; //1.头像编号
@AnTableField(column="AVATAR_TYPE", type="byte", notNull=true) private int avatarType; //2.头像类型:0系统,1用户
@AnTableField(column="AVATAR_TIME", type="long", notNull=true) private long avatarTime; //3.头像上传时间,long型,方便转HTTP时间
@AnTableField(column="AVATAR_50", type="binary", notNull=true) private byte[] avatar50; //4.50*50头像
@AnTableField(column="AVATAR_100", type="binary", notNull=true) private byte[] avatar100; //5.100*100头像
@AnTableField(column="AVATAR_150", type="binary", notNull=true) private byte[] avatar150; //6.150*150头像
public String toString()
{
return Jsons.toString(this);
}
public long getAvatarId()
{
return avatarId;
}
public ZmrAvatar setAvatarId(long avatarId)
{
this.avatarId = avatarId;
return this;
}
public int getAvatarType()
{
return avatarType;
}
public ZmrAvatar setAvatarType(int avatarType)
{
this.avatarType = avatarType;
return this;
}
public long getAvatarTime()
{
return avatarTime;
}
public ZmrAvatar setAvatarTime(long avatarTime)
{
this.avatarTime = avatarTime;
return this;
}
public byte[] getAvatar50()
{
return avatar50;
}
public ZmrAvatar setAvatar50(byte[] avatar50)
{
this.avatar50 = avatar50;
return this;
}
public byte[] getAvatar100()
{
return avatar100;
}
public ZmrAvatar setAvatar100(byte[] avatar100)
{
this.avatar100 = avatar100;
return this;
}
public byte[] getAvatar150()
{
return avatar150;
}
public ZmrAvatar setAvatar150(byte[] avatar150)
{
this.avatar150 = avatar150;
return this;
}
}